Excel Files extraction using ODBC

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"On the same box" as the DataStage server ?

Because this is what you need.

User name and password can be left blank, or can be your Windows user name and password.

Note that worksheets are presented as "system tables" so, when importing table definitions, you need to check the "include system tables" check box.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Josephine
Participant
Posts: 37
Joined: Mon Jun 16, 2008 2:32 am

Post by Josephine »

But while i try to import the file , i got this error:

DSR.MetaGeta(GET.SEQ.SAMPLE)
Error reading file D:\\sample.xlsx.
Using map MS1252.
Null byte in row 1 at about character 6 of 565.
UTF=504B030414000600080000002100710E392B70010000C2A00500001300C39B015B436F6E74656E745F54797065735D2E786D6C20C2A2C3970128C2
Josephine
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Can you try the ODBC connection with MSQUERY or another tool of your choice? Does that work correctly?
iDomz
Participant
Posts: 81
Joined: Wed Jul 25, 2007 5:25 am
Location: London

Post by iDomz »

I might be way off the mark but your file is xlsx, which I guess is the Office 2007 format
You might want to check if DSN works natively for that format or if you need some add-ins or possibly the odbc drivers you need might be different etc etc..
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Post by DSRajesh »

is it manadatory to use tools like MSQUERY?

no other process for this extraction?
RD
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Post by DSRajesh »

is it manadatory to use tools like MSQUERY?

no other process for this extraction?
RD
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, it isn't mandatory to use MSQUERY, but if you have the same problem with a tool outside of DataStage, then it is unlikely you have a DataStage problem - so it is a good way to cross-check connectivity.
Post Reply