error in sequential file

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
dsquestion
Participant
Posts: 26
Joined: Thu Feb 03, 2005 1:05 am

error in sequential file

Post by dsquestion »

Hi all,
i am using a sequential file to extract data from a text file which uses a delimiter to seperate the data.I am getting the error below.To my knowledge all the settings are right,but still i am facing this issue.Can anyone guide me.


TIMEDETAIL_SRC..Sequential_File_0.DSLink3: nls_read_delimited() - row 81, column JOBNAME, required column missing
TIMEDETAIL_SRC..Sequential_File_0.DSLink3: nls_read_delimited() - row 82, column JOBNAME, required column missing
TIMEDETAIL_SRC..Sequential_File_0.DSLink3: nls_read_delimited() - row 83, column JOBNAME, required column missing
mhester
Participant
Posts: 622
Joined: Tue Mar 04, 2003 5:26 am
Location: Phoenix, AZ
Contact:

Post by mhester »

Based on the error that you have given it would appear that there are some rows that either have too many delimitters or not enough. Usually this happens when the delimitter you have chosen is found within the data itself.
dsquestion
Participant
Posts: 26
Joined: Thu Feb 03, 2005 1:05 am

Post by dsquestion »

Hi,
Thanks for the reply.I have used | as the delimiter and this is not working out.comments apperciated
MaheshKumar Sugunaraj
Participant
Posts: 84
Joined: Thu Dec 04, 2003 9:55 pm

Post by MaheshKumar Sugunaraj »

Hi,

In the Sequential File stage in the Output, Goto Properties -> Columns and In columsn you have "Incomplete Columns" , Its a drop down list and select the option "Replace" and run the Job.

Hope this helps.

Thanks & Regards
Mahesh
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

As this is happening only for few rows, those row may be missing the columns - i.e. have less number of delimiters in the rows.

It is better to open the file in an xls and locate the rows to resolve the problem.
diamondabhi
Premium Member
Premium Member
Posts: 108
Joined: Sat Feb 05, 2005 6:52 pm
Location: US

Post by diamondabhi »

HI,
I had a similar problem where pipe delimiter was used instead of alphabet I , as Sainath suggested open the file and check,maybe this could help you.

Thanks,
Sai.
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
.
Did you try the following -
Go to format tab in Defining Sequential File
In Missing Columns Action, select Pad with empty string.
This specify what action you take when column is missing from your sequential file.

Thanks
Ketfos
dsquestion
Participant
Posts: 26
Joined: Thu Feb 03, 2005 1:05 am

Post by dsquestion »

Thanks everyone for the response,
MaheshKumar Sugunaraj solution has worked out.

thanks
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Was your input file a varying column layout?
dsquestion
Participant
Posts: 26
Joined: Thu Feb 03, 2005 1:05 am

Post by dsquestion »

Hi sainath,
my data was like this aaaaa,bbbbbb with two columns only but many records.when i tried to open the coloumn it gave me an error .but when i used MaheshKumar Sugunaraj solution it got solved.
But one of friend has got the same problem i have tried MaheshKumar Sugunaraj solution he is not getting it. Any solutions appereciated.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

By selecting 'replace' you are suppressing the impact / symptoms of the mistakes in the source data. Unless otherwise such records are expected, it will be risky to go down that route.
Post Reply