comma (CSV) file for sources

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
lsnovick
Participant
Posts: 80
Joined: Fri May 25, 2007 7:24 am
Location: Troy

comma (CSV) file for sources

Post by lsnovick »

I have all my sources coming in as csv.

I know how excel saves off the files as , and within the fields it uses ","

How can DS read these files correctly? I have searched this forum but can't find anything.

Thanks.
abhijitg
Premium Member
Premium Member
Posts: 10
Joined: Sun Aug 22, 2010 9:54 am
Location: Charlotte, NC

Post by abhijitg »

You can use a sequential file stage and define you delimiter as a comma. You might also want to check if quotes are required.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

If comma is only used as delimiter and not part of data then you are ok. However if comma is both part of data and delimiter, then you definitely need data to be enclosed in quotes.
Post Reply