How to implement " like" condition

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

Post Reply
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

How to implement " like" condition

Post by deesh »

Hi friends,

Can any one help me how to solve below like condition logic in datastage

if okmodl+ okexcd+oktedl contains 'FOB' then 'Y00' else 'y01'--> For this we need "FOB" word either its FOB or ENFOB or LLELFOBND, Just among this FOB word we need
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The Index() function is used to locate a substring within a string, you can use the return value from it as a boolean if all you want is true/false, it found it or it didn't.
-craig

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