CSV file with column value with double quote

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
naren6876
Participant
Posts: 233
Joined: Mon Feb 07, 2005 7:19 pm

CSV file with column value with double quote

Post by naren6876 »

Hi,

I am trying to read a csv file which has data like..

abc,bcd,hh"k"lmn

How can i remove the double quotes around "k" and read the file?

any input would be hoghly appreciated.

my current settings are
seqfile stage with comma delim and quote=double.



Thanks,
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You've been here long enough to know about Search function.

Why did you specify Quote=double when clearly this is not true? Why not specify Quote=none (000)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And then *if* you still need to remove the quotes, do so after you read it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
madhuker
Participant
Posts: 15
Joined: Wed Jul 19, 2006 1:05 am
Location: Hyderabad

Post by madhuker »

Hi,

Using Convert Function in the transformer double quotes(") can be removed.But unable to remove the double quotes in the sequential stage itself. In sequential stage, used Quote character property with the options of double quotes (") and (000). Tried both the options individually but unable to remove. Is there any way to remove in Sequential Stage ?
Need your help.


Thanks in Advance.
Thanks & Regards
Madhuker
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Double-quotes inside a field? No. Well, unless you consider leveraging an O/S command like awk from the Filter option in the stage to be that. Then yes. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply