I am trying to create a simple job that reads from an excel spreadsheet and do a little transformation, and then write the data out to a fixwidth text file. I created an ODBC DSN by using Microsoft Excel Driver, but I got "No data match" when I was importing the table definition. I did specify the excel file in the DSN, can anyone point me where I missed and how to correct please?
Thanks in advance!
How to read Microsoft Excel file as data source?
Moderators: chulett, rschirm, roy
Did you declare it as a system DSN? I usually double-check ODBC connectivity using the (free) tool MS QUERY; try seeing if that works.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
data does not always equate to tables. Try a simple 1-worksheet file with 2 columns (with headers) - does that work? If so, then what is your data format in your non-working excel sheet?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
The DSN needs to be defined on the DataStage server, not your client. The Excel file also needs to be read from server as that is where the DataStage job is actually running.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Check the box that says something like "include system tables". For some strange reason (all complaints to billg@microsoft.com) the ODBC driver for Excel treats worksheets as system tables. They come in with "$" prefixes.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.