PATINDEX Equivalent
Posted: Mon Nov 03, 2008 5:49 pm
Is there an equivalent for the MSSQL Patindex in Datastage?
Requirement is to convert like the following --
Source Target
ABC-DEF ABC
EFGHI-KL EFGHI
A-B A
-JKL NULL
(substring from 1 till it finds the first occurence of "-").
Thanks !!!
Requirement is to convert like the following --
Source Target
ABC-DEF ABC
EFGHI-KL EFGHI
A-B A
-JKL NULL
(substring from 1 till it finds the first occurence of "-").
Thanks !!!