Page 1 of 1

Oracle function IN equivalent in Datastage

Posted: Wed Jun 15, 2011 7:21 am
by veerabusani185512
Hi,

Is there any function available in DS equivalent to Oracle IN or NOTIN functions?

I need to implement below logic in my job.
If the column PRODUCT value is IN ('AA','BB','CC','DD','EE','FF'), then the output is 1 else 0.can you please suggest any ideas?

Thanks & Regards,
Veera.

Posted: Wed Jun 15, 2011 7:30 am
by chulett
That would be the Index() function, something you can search for as its use for this purpose has been documented here quite a bit.

Posted: Wed Jun 15, 2011 2:55 pm
by nani1974
Even You can use 'If Then Else' in Transformer and get the result.

Posted: Wed Jun 15, 2011 4:42 pm
by chulett
True... but that would be more of an alternative rather than an equivalent. :wink: