Getting an error while trying to read excel sheet in Sequen

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
shivan
Participant
Posts: 70
Joined: Mon Jul 25, 2005 9:29 am

Getting an error while trying to read excel sheet in Sequen

Post by shivan »

I am trying to read excel sheet in Sequentail file and writing it to DB2.
Am getting all the junk data in the view data(Seq file) and also it is showing less no of records.
TEST_HARI_EIS..Sequential_File_0.DSLink2: nls_read_delimited() - row 1, column LF_ID, required column missing
TEST_HARI_EIS..Sequential_File_0.DSLink2: nls_read_delimited() - row 2, too many columns in record
TEST_HARI_EIS..Sequential_File_0.DSLink2: nls_read_delimited() - row 3, column LF_ID, required

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

Post by Sainath.Srinivasan »

The records are of varying columns.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

The records are of varying columns.
shivan
Participant
Posts: 70
Joined: Mon Jul 25, 2005 9:29 am

Post by shivan »

Can you please elaborate this?

Thanks
Shivan
Sainath.Srinivasan wrote:The records are of varying columns.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't use a Sequential File stage to read a spreadsheet unless you've saved it in .csv format first. To read the .xls directly you need to use the ODBC stage instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chitra
Participant
Posts: 4
Joined: Thu Jan 22, 2004 1:15 am

Post by chitra »

Like Craig said you should convert the excel file to a .csv file and also the no of columns and column length in the sequencial file stage should match the csv file, otherwise you would get the error you mentioned.
Post Reply