Can i use .xls file as input stage in datastage.

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
nilesh
Participant
Posts: 17
Joined: Tue Aug 08, 2006 5:02 am
Location: Mumbai

Can i use .xls file as input stage in datastage.

Post by nilesh »

Hi,

I am getting data in .xls format.I am converting it in .CSV format and loading it.But in CSV say in one column i am getting double comma's in one colmn so it gives me error.

Is there any other way round for this problem?


Thanks in advance.
Nilesh
Nilesh Malekar
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

When you convert your .xls into a .csv make sure that you quote all strings, then you won't get this problem.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Same time, the Sequential stage that is used to read those files need to be configured with proper delimieter and quotes. Integer fields doesn't expect a double qoute in it.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Double comma indicates that the cell was empty. In the Columns definition right click on this particular column definition, choose Edit Row, and make the column nullable with a Null Field Value of "" (or a Null Field Length of 0).
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