Page 1 of 1

reading a fixed width file

Posted: Fri Jul 16, 2010 12:30 am
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)

Posted: Fri Jul 16, 2010 12:59 am
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.

Posted: Fri Jul 16, 2010 1:56 am
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.