Sever Job: Not able to read (') in data

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
harshada
Premium Member
Premium Member
Posts: 92
Joined: Tue May 29, 2007 8:40 am

Sever Job: Not able to read (') in data

Post by harshada »

Hi,

I have a server job

Seq file read -> transformer-> o/p seq file.


Data contains ... "HE GARDENER'S COTTAGE"

Server job aborts saying


STG_INP_01.INP_01: nls_read_delimited() - invalid quotes, column ADDRESS2 = "HE GARDENER'S COTTAGE","

the 'S in the data is a problem. If I remove this it reads the data

Is this to be specially handelled?


Thanks
Romy
Participant
Posts: 26
Joined: Thu Nov 13, 2008 3:37 am
Location: Chennai

Post by Romy »

Check the delimiter that you have given in the Sequential file... Change that and try again
chandrababu.Datastage
Participant
Posts: 2
Joined: Wed Nov 19, 2008 1:01 am

Concatinate it

Post by chandrababu.Datastage »

Just concatinate ur string with " ' "I think this will work..
mdtauseefhussain
Participant
Posts: 38
Joined: Mon Feb 27, 2006 10:34 pm
Location: Chennai
Contact:

Post by mdtauseefhussain »

Just try changing NLS in the file to none
Mohammed Tausif Hussain Sheikh
Cognizant technologies,Perungudi
Chennai
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What are the format properties in the Sequential File stage - in particular the Quote Character property?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
IC
Participant
Posts: 3
Joined: Sat Aug 14, 2004 4:32 pm
Location: Dallas

Post by IC »

[quote="ray.wurlod"]What are the format properties in the Sequential File stage - in particular the Quote Character property? ...[/quote]

Hello,

I am having a similar error:

read_delimited() - invalid quotes

My Job runs fine reading most of the files, but I get this error 2 files. The data in the file looks fine to me, no obvious reason for the error.

My version: DataStage Server 7.5.2.

It's a csv file, there are quotes around char and varchar data; hence I choose:
delimiter as , and
quote char as "


Please advise.

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

Post by chulett »

:!: Similar, perhaps, but not the same. Please start your own thread so we have your particulars - version, edition, etc etc.
-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 »

In both cases try setting the quote character to 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.
IC
Participant
Posts: 3
Joined: Sat Aug 14, 2004 4:32 pm
Location: Dallas

Post by IC »

[quote="ray.wurlod"]In both cases try setting the quote character to 000. ...[/quote]

Hi Ray,

Well, in the actual file, there are quotes (") around char/varchar and timestamp columns, that's why I choose Quote Character as " in the Fromat tab.

Are you suggesting to change this to 000 (instead of ")?


Thanks much!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

[sigh] So much for a new thread. :?

The assumption is you have quotes in your quotes, is that the case?
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

This 'thread' is scalable and re-usable.And now I'm not sure who I am answering to..

:roll:

Can you replace " with some other quote character that does not occur as part of the string data?Probably using a Filter Command?
Post Reply