read_delimited()

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
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

read_delimited()

Post by vardhan354 »

Hi Fellas,

I'm loading data from a oracle table to a sequential file(Job1).The job is running fine with no indication of errors or warnings in the log.I use this sequential file to load to another table(Job2).
Now the scenario is like this.
When I tried to view the data from the job 1, I get the following messages.

1. read_delimited() - invalid quotes
2. read_delimited() -required column missing

I'm not able to get rid of this.

When I run the Job 2, Sequential file (from Job1) into a table,the job is getting aborted with the following message.

read_delimited() - invalid quotes, row 204

So, Unless I fix the issue in job1,my job 2 cannot be go for a successful run.Please throw your opnions on this issue.

Regards,

VG.
ETL
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

In the output of the sequential file stage, specify the quote characters as 000. Also while building the file. Specify the quote character as 000.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Make sure your Sequential stage in the OCI-->SEQ job is setup to honor quotes if your delimiter is in the data. If not, don't use quotes in the setup. If so, you then need to make sure your data does contain quotes that will foul up the detection of column separation. In addition, data containing low/hi ASCII values and embedded <CR>/<LF> values will also need to be honored in the configuration of the SEQ stage.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Looks like some records contains terminators(as Ken mentioned ASCII characters) to me. Identify which column's data contains these termintators and then, in the Sequential file stage, go to the Columns tab and set the attribute " Contains Terminators" to Yes for that column. Hopefully, that should take care of your error.

The columns which might contain the terminators in most cases would be of datatype Varchar(in my experience). I hope that gives a good start.
Kris

Where's the "Any" key?-Homer Simpson
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

Post by vardhan354 »

I just happened to see one of the discussions posted on this issue.It was suggested,"The best way to handle it , is to go to the column tab in the sequential file stage, and set the 'Contains Terminators' of the last row to Yes. "

Now I just ran the job with the said modifications and is running.This job is multiple instance job as the source has 0.45 Billion records, So I decided to chunk the data.

Thanks a lot for your opinions.Your thoughts valued a lot to me.......

Rgds,
VG.
ETL
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

You cannot or not supposed to set the 'Contains Termintors' attribute to Yes for the last row(column).
Kris

Where's the "Any" key?-Homer Simpson
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

Instead try this for the last row:

Convert(Char(10):Char(13),"",Field)
Post Reply