How to extract data from a Excel 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
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

How to extract data from a Excel file

Post by MOHAMMAD.ISSAQ »

Is there any possibility of extracting data directly from Excel file or
It need to be convert to some other format.

Thanks in advance.
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Post by AmeyJoshi14 »

:!: Yes, You can save the Execl file as .csv and then use it with the help of sequential file... :P
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: How to extract data from a Excel file

Post by gateleys »

If you don't want to go the csv file type route, you will have to get hold of some 3rd party ODBC drivers to allow connection to the Excel file (since you are on Unix).
gateleys
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

Be forewarned about the CSV option --

Excel have its own interpretation and rules for CSV files that DataStage may find difficult to handle. Not only that, if there are specific metadata difference (say, a field have an unique unicode value added yet looks normal within Excel), DataStage would not be aware of it.

One of the rules Excel follows: No quotes unless there's a delimiter or quote character within the general field. By explicitly declaring all fields as text would quotes be applied, apparently.

Good luck.
Post Reply