data separated by space

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
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

data separated by space

Post by pavan_test »

Hi All,

I have incoming data coming in separated by space such as,

america italy spain india
america china britan japan

desired output:

america

i.e. I have to pick up only the 1 one and process it.

Can anyone please let me know how do I process data separated by single space. sometimes the data can also comin sepaarted by a single tab.

Thanks
pavan
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Field() function.

Convert tab to space.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Too complex. Field(Convert(svTab, " ", InLink.TheString), " ", 1, 1) would do it.
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