NOT IN in datastage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

BillB
Premium Member
Premium Member
Posts: 48
Joined: Tue Nov 13, 2007 6:44 pm

Post by BillB »

I agree that the string that we want to search in should be the first argument to Index, and the string that we are searching for should be the second.

But don't we want to look for
'|':lnk_xfmr_target.CLASS:'|'
in
'|ARC|PPD|CCD|CTX|COR|DNE|'
and doesn't that make the original example correct?

Happy to be corrected :)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

LOL! And the correction is corrected...

It does get confusing because the concept of which one is the "string" and which one is the "substring" reverses when you go into this IN/NOT IN territory. Which made Harish's posted example work out properly in spite of his posted code being wrong - for the task at hand.

Good eye. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply