data with double quote

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
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

data with double quote

Post by dnat »

Hi
I have a job where the input file format is
Delimiter |
Quote double.

But i got one record like this

"aaaaa"|"bbbbbbbb"|"cccccccccc""|"ddddddd"

Now this record is getting rejected because of the extra double quote in "ccccccc".
is there a way to handle this.
yousuff1710
Participant
Posts: 56
Joined: Fri Sep 21, 2007 9:10 am
Location: Bangalore

Post by yousuff1710 »

You canot read the data in this format; you need to remove that extra double quote.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The file is "corrupted". Get whoever created it to use a different quote character (or none) around 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.
datastage_learner
Participant
Posts: 15
Joined: Thu May 07, 2009 9:50 pm

Post by datastage_learner »

dnat...master...can't you use any unix / shell script to remove and clean quotations issue... that should be fairly resolve it :wink:
Thanks,
DS_Learner
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's a difficult problem to solve generically - it's easy if the extraneous double-quote character is at either end of the string, but what if it's in the middle?
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