Like Operator 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

Post Reply
bala_135
Premium Member
Premium Member
Posts: 156
Joined: Fri Oct 28, 2005 1:00 am
Location: Melbourne,Australia

Like Operator in datastage

Post by bala_135 »

Hi All,

A small clarification.Is there any functions or suggestions to implement the LIKE operator in datastage.

Eg:-Select col1,col2 from table1 where col3 LIKE %ABC%.

I am converting some sql scripts to datastage jobs,the issue is I have to implement the LIKE part also in datastage because the source is a file.

Any inputs most appreciated.

Regards,
Bala.
rajendharreddy
Participant
Posts: 46
Joined: Tue Aug 21, 2007 5:39 am
Location: Bangalore, India

Post by rajendharreddy »

In Datastage % equal to ...
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

You can use the same like operator in filter stage .Try that option and let us know .
Nag
bala_135
Premium Member
Premium Member
Posts: 156
Joined: Fri Oct 28, 2005 1:00 am
Location: Melbourne,Australia

Post by bala_135 »

Thanks its working.We can use LIKE operator in Filter Stage.
Eg:- col3 LIKE '%ABC%'

Regards,
Bala.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... resolved? If so, mark it Resolved using the button at the top of the screen please.
-craig

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