Page 1 of 1

Get only numbers from an alpha numeric string

Posted: Tue Nov 30, 2010 12:41 am
by yabhinav
Hi,

Is there a function in DataStage which will return only numbers when an alpha-numeric string is passed as input to the function?
If not is there any other way to achieve this without using a routine.

Ex:
If input (919)-9727, the output should to be 9199727

Thanks,
Abhinav

Posted: Tue Nov 30, 2010 12:47 am
by chulett
There is the DIGITS transform that will do that for you.

Posted: Tue Nov 30, 2010 12:57 am
by yabhinav
Thanks Craig.