Removal of any non-numeric character

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
akarsh
Participant
Posts: 51
Joined: Fri May 09, 2008 4:03 am
Location: Pune

Removal of any non-numeric character

Post by akarsh »

Hi All,
I want to remove any non-numeric character from a string and the out put should have only numeric characters.please tell me hoe i can do this.
eg: input - AB123, o/p - 123

Thanks,
Akarsh
Thanks,
Akarsh Kapoor
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

DataStage PX has no builtin functions to do this. You can either write your own BuildOp to do this, or use a BASIC transform stage and the OCONV() function.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. This question has been asked, and solutions offered, in the past. Search is your friend.
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