comparing data

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
logic
Participant
Posts: 115
Joined: Thu Feb 24, 2005 10:48 am

comparing data

Post by logic »

Hi,
I have a scenario in which I have to lookup to a table with a column(having data such as DIVISION no 1) and the source table with a column(having data such as DIVISION no 1arx).I have to pass a other column (DIVISION ID)from lookup to target based on the match as above..where division 1 should match with division 1arx. Should I use the like function...i.e.MATCHES?
Need help using the like..actually MATCHES BASIC function in DS.
thank you.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No, what you need to do is to pass the "1" unchanged by DataStage, and use user-defined SQL in the stage that connects to the table. In the user-defined SQL specify LIKE rather than "=", and use an appropriate wildcard character (usually %).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
logic
Participant
Posts: 115
Joined: Thu Feb 24, 2005 10:48 am

Post by logic »

Hi Ray,
Thank you.
Post Reply