NUMBER TO VARCHAR

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
bobby
Participant
Posts: 86
Joined: Mon Jul 19, 2004 8:31 pm

NUMBER TO VARCHAR

Post by bobby »

hi,
i have ORDER ID 1001
AND OMC ID MCS1001
I WANT TO COMPARE 1001 TO BE COMPARE WITH MCS1001 SO THAT
MCS SHOULD BE TRUNCATED AND I GET ONLY 1001 in transformer
PL. INFORM
Thanks,
Bobby
neena
Participant
Posts: 90
Joined: Mon Mar 31, 2003 4:32 pm

Post by neena »

CHECK DIGITS Routine

Thanks
rasi
Participant
Posts: 464
Joined: Fri Oct 25, 2002 1:33 am
Location: Australia, Sydney

Post by rasi »

Use Iconv(Arg1,"MCN"). This will extract only the numbers from the Arg1.

Thanks
Siva
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Guess what the defining expression for the DIGITS Transform is? :wink:

Don't you thing that DIGITS is a more easily remembered name than Oconv(Arg1, "MCN") ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply