extra comma in csv file

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
aravindunni31
Participant
Posts: 27
Joined: Mon Jul 09, 2012 6:51 am
Location: Chennai

extra comma in csv file

Post by aravindunni31 »

I have a file which is csv and comma separated. I have extra comma in one of my columns. I dont have quotes in my file. If I read via Sequential File Stage, it is getting considered as another column. :shock: Is there any way to handle this :cry: :cry: :cry:
Regards,
Aravind V A
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Best is to get the provider of the file to give you a correct file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
weiyi_will
Participant
Posts: 10
Joined: Sun Aug 11, 2013 10:46 pm
Location: Dalian

Post by weiyi_will »

ray.wurlod wrote:Best is to get the provider of the file to give you a correct file. ...
Agree!
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What the others have tried to say, indirectly, is that there is nothing DataStage can do if the extra comma is in a column other than the last one. Unless there is a logic to the extra comma (e.g. it always appears in a string "hello, there") you can't read that file.
Post Reply