Comma Delimiters

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Willo
Participant
Posts: 10
Joined: Fri Jan 02, 2004 2:07 am

Comma Delimiters

Post by Willo »

Hi,

I have a column that has a comma that I need to seperate, eg the column looks like:

123719,27319

I want to seperate them into 2 seperate columns, I want to this in a transform. Could anyone help please??

Thanks
peterbaun
Premium Member
Premium Member
Posts: 93
Joined: Thu Jul 10, 2003 5:27 am
Location: Denmark
Contact:

Post by peterbaun »

Hi -

Use the Field function :

If Arg = 123719,27319

Field(Arg, ',', 1) will return 123719
Field(Arg, ',', 2) will return 27319

Regards
Peter
Regards
Peter Baun
Willo
Participant
Posts: 10
Joined: Fri Jan 02, 2004 2:07 am

Post by Willo »

Thanks Peter, that works a treat!! :D
Post Reply