reading a fixed width 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
bhargav_dd
Premium Member
Premium Member
Posts: 57
Joined: Tue Jun 30, 2009 9:38 am

reading a fixed width file

Post by bhargav_dd »

i am new to datastage
i changed .xlsx file as a fixed width file.
when i use fixed width file as a source.
after import the metadata. by view data option it's not retrieving proper data.
(error: import short data)
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

An xls file is not a plain text file, it cannot be used directly in a file stage for read. Save it as txt file and then use it.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can, alternately (if you have a UNIX-based ODBC driver for Excel), use ODBC to read from the worksheet. It is probably easier to script a mechanism for dumping the worksheet into CSV format (or similar), transfer that file to the UNIX machine, and have DataStage read the CSV file.
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