RE:handle alphanumeric values

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
manikumar
Participant
Posts: 4
Joined: Sat Jul 03, 2010 8:30 am
Location: mail
Contact:

RE:handle alphanumeric values

Post by manikumar »

i have a input
col
----
aa123
34bbb
567kk

i want two output like
output1
col
----
aa
bbb
kk

and second output like
col
----
123
34
567
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Transformer stage using Convert() functions to remove the numeric characters (for one output) or alphabetic characters (for the other output).
Are any other input characters, such as separators, likely?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajeshb
Participant
Posts: 3
Joined: Tue Jul 28, 2009 8:33 am

Re: RE:handle alphanumeric values

Post by rajeshb »

manikumar wrote:i have a input
col
----
aa123
34bbb
567kk

i want two output like
output1
col
----
aa
bbb
kk

and second output like
col
----
123
34
567

U CAN USE DIGIT TRANFORMS
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: RE:handle alphanumeric values

Post by ray.wurlod »

rajeshb wrote:U CAN USE DIGIT TRANFORMS
1. Not in parallel jobs.
2. Please do not "shout" (use all upper case) when posting.
3. The second person personal pronoun in English is spelled "you". U is one of our posters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
manikumar
Participant
Posts: 4
Joined: Sat Jul 03, 2010 8:30 am
Location: mail
Contact:

Re: RE:handle alphanumeric values

Post by manikumar »

Thanks for responding .can u give me a syntax of entire function i know convert function.but i am not getting in this scenario how to use conver().
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Use

Code: Select all

 Convert('0123456789','',InputColumn) 
to get rid of numeric values and vice versa.
Kris

Where's the "Any" key?-Homer Simpson
Post Reply