extract required data from string

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
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

extract required data from string

Post by thumati.praveen »

Hi everybody,
my problem is extract requred data from string like

"12.32.345.23 datastage" this is my string,in this i want to extract some time numeric only(like 12.32.345.23) and some times i want to extract charecters only(like datastage).in server jobs code conversions is their,but in parlell jobs we can not use the ICONV,OCONV functions.

can you privide the solution for this problem.

Thanks,inAdvance.
satishmelinamani
Participant
Posts: 7
Joined: Wed Jun 28, 2006 1:36 am
Location: Bangalore

Re: extract required data from string

Post by satishmelinamani »

Probably you can make use of Basic Transformer in your Parallel Job.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Re: extract required data from string

Post by balajisr »

satishmelinamani wrote:Probably you can make use of Basic Transformer in your Parallel Job.
... if performance is not an issue.
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

In transformer their is no function for extracting the numerics from string and extracting the alphabetics from the string.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please note that 12.32.345.23 would not be counted as numeric in either server or parallel jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

That was a smart solution that Kumar came up with. It can work for both server and px.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply