extract Numeric values alone

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
kishorebhulokam
Participant
Posts: 9
Joined: Thu Jul 10, 2008 6:18 pm

extract Numeric values alone

Post by kishorebhulokam »

Hi All,



In one off my source Field (CODE) I have values like (eg: 956,1637,P O BOX288, PO box 1162,-,.,.PO,0,0001,0002...) now my task is to extract only numeric values and load into target table is there any Function in Data stage to do this? And my source values are not fixed length.

Thanks in Advance
kishore
Jasti
Participant
Posts: 44
Joined: Sat Apr 14, 2007 6:34 am
Location: Hyderabad, India

Post by Jasti »

use Num() function..
Thanks,
Mohan.A.Jasti.
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Hi,

Use Oconv function

Syntax: Oconv(Field,"MCN")
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use DIGITS transform (which is a meaningfully named way to invoke the "MCN" conversion).
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