Extraxct 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

Extraxct 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

If it's always the case that the number will precede the remainder and a space will occur between them, you could use the Field() function.
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