Page 1 of 1

How handle multiple Delimeter in Datastage...

Posted: Wed Oct 24, 2007 4:27 am
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

Posted: Wed Oct 24, 2007 4:42 am
by ArndW
The sequential stage does not allow multiple separators; but you can use a simple tr command to convert the commas into pipes.

Posted: Wed Oct 24, 2007 7:02 am
by chulett
Or declare the pipe and then 'manually' split the date field in the job.

Posted: Wed Oct 24, 2007 8:08 am
by mcs_giri
Try using quotes for those fields tat have multiple delimiters('2007-09-08,2007-08-09')..

Posted: Wed Oct 24, 2007 3:27 pm
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?