not abl to read flatfile with quote as double

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
datastagedw
Participant
Posts: 53
Joined: Fri Mar 07, 2008 1:17 am

not abl to read flatfile with quote as double

Post by datastagedw »

i have the sample coming as follows:

"abc", "this is ""pick it up"" and check", "def"

now i want the output in viewdata as follows
abc, this is "pick it up" def

instead this is getting rejected when reading with SFS.

what delimiter string i should use? shall i use "," . i tried this also.
following are the settings i have:
quote=double

pls help
ETL DEVELOPER
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There are a couple of recent threads on this very topic, perhaps some of the principles from them could summarize the options here?

viewtopic.php?t=117173

viewtopic.php?t=117096
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use None as the quote character in your target Sequential File stage. This is how you tell DataStage to use no quote characters surrounding strings.
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 »

I believe they are trying to read data in the format, not write it, hence the links to the other recent topics on same.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, if you set the quote character to None you get all the quote characters into your job where you can do something about it, rather than have the Sequential File stage spit the dummy.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply