How to read a xls file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

How to read a xls file

Post by xch2005 »

Hi,

For me the input source is an excel file. How can I read that xls file in a job?

Can anyone please help?

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Please use search next time as recommended, this subject is covered at least once a month. Check out this thread for example.
samala.madhu@gmail.com
Participant
Posts: 6
Joined: Sun Mar 09, 2008 2:31 am

Re: How to read a xls file

Post by samala.madhu@gmail.com »

xch2005 wrote:Hi,

For me the input source is an excel file. How can I read that xls file in a job?

Can anyone please help?

Thanks
Convert excel sheet in text file using below steps.

step1: Open the excel sheet
step2: Save the Excel sheet by giving file name(XXXXX) and
Save as Type: Text(Tab Delimited)).
step3: Sequential stage and extract the data.

if you have any queries, mail to me samala.madhu@gmail.com
Last edited by samala.madhu@gmail.com on Fri Jul 25, 2008 11:22 am, edited 1 time in total.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

samala.
you can do it for onetime, but not good advice for scheduled job.
it's commonly asked question here. so search will help you
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Hi samala,

and if you can prevent the loading of Excel-Files: DO IT.

Excel is such a good and flexible calculation tool, that you need a 100 % dicipline from your users. If you only have 99.9999999999999999 % you are lost, errors will occur and don't blame DataStage for that, it is the excel nature.

Use MS-Access or other similar tools for User-Input. Otherwise you will need a lot of time for the loading process, due to it.
Wolfgang Hürter
Amsterdam
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Workaround - xls now converted to csv file

Post by xch2005 »

WoMaWil wrote:Hi samala,

and if you can prevent the loading of Excel-Files: DO IT.

Excel is such a good and flexible calculation tool, that you need a 100 % dicipline from your users. If you only have 99.9999999999999999 % you are lost, errors will occur and don't blame DataStage for that, it is the excel nature.

Use MS-Access or other similar tools for User-Input. Otherwise you will need a lot of time for the loading process, due to it.
Had the xls file converted to a csv file and now it is resolved.
Thanks all for your time and reply.

Thanks
Post Reply