Error in reading file with field default quotes,sequential

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
kalpanam
Participant
Posts: 39
Joined: Sat Apr 19, 2008 6:14 am

Error in reading file with field default quotes,sequential

Post by kalpanam »

Hi all,

I'm reading csv file using Sequential file stage with the following format:

Final Delimiter=end
Field Delimiter=comma
Quote=double

but in the source data i'm having "" with in the field itself where sequential file stage reading it as seperate field

for example my source is like:

Page_Name,Page_details,Session_id
"bluewater 9/16"" climb_610111","bluewater 1'' climb-737298",1234
"bluewater_610111","bluewater",1234


But in the target Page_Name and Page_details values are getting cascaded because of this "" with in the field like:




Anyone please let me know how to handle this "" with in the field.

Thanks & Regards,
Kalpana.
Kalpana Marupudi
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

Use sed command in filter tab
Srinu Gadipudi
kalpanam
Participant
Posts: 39
Joined: Sat Apr 19, 2008 6:14 am

Post by kalpanam »

srinivas.g wrote:Use sed command in filter tab
Thanks for your reply.Can you please tell me the command in detail.
Thanks & Regards,
Kalpana.
Kalpana Marupudi
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

sed 's/"//g'
Srinu Gadipudi
Post Reply