How handle multiple Delimeter in Datastage...

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
thepakks
Participant
Posts: 22
Joined: Mon Aug 13, 2007 4:28 am
Location: Delhi

How handle multiple Delimeter in Datastage...

Post by thepakks »

Hi,
My source file have multiple delimeter.two field seprate by | (pipe) delimeter and 3rd field seprate by , (comma) delemeter.

example-
Name |Department |Date_join ,Date_birth
sachin| Accounts|2007-10-02,1982-11-04
Amit |Manager|2006-03-10,1972-12-06

please help me how can i handle in Datastage....

Regards

Deepak Sharma
Deepak
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The sequential stage does not allow multiple separators; but you can use a simple tr command to convert the commas into pipes.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or declare the pipe and then 'manually' split the date field in the job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
mcs_giri
Participant
Posts: 14
Joined: Sat Sep 22, 2007 8:44 am
Location: chennai

Post by mcs_giri »

Try using quotes for those fields tat have multiple delimiters('2007-09-08,2007-08-09')..
GIRIDHARANJ
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

msc_giri - I am confused by your suggestion, could you perhaps explain how using quotes will allow these columns to be read correctly?
Post Reply