It's all about the answers!

Ask a question

Load MS Excel file in Db2 using RI


sasanuru kumar (3142319) | asked Sep 22 '10, 9:33 a.m.
Hi,

I have requirement, load MS Excel file (.xls format) in to DB2 using RI cognos data manager. If it is possible how do configure the file .xls file in RI. Please help me from this issue.
Thanks in advance

3 answers



permanent link
derry davis (23222016) | answered Sep 22 '10, 10:43 a.m.
Hi,

I have requirement, load MS Excel file (.xls format) in to DB2 using RI cognos data manager. If it is possible how do configure the file .xls file in RI. Please help me from this issue.
Thanks in advance


Hi sasakuma,
I assume you want to read data out of a MS Excel file and load it into the data warehouse. An approach I've taken is to effectively create a table in Excel by using a cell reference over the columns and rows of data to be read. The first row will act like field names which then can be used in the ETL query select clause. You'll also need to setup a connection to the Excel file through ODBC. Which can then be used in Data Manager.
If you want the file loaded as a binary, I have no idea.

permanent link
Danny Jacobs (6) | answered Oct 20 '10, 2:40 a.m.
ODBC is the only way I've successfully connected to an excel file. If there is another more elegant approach, let me know.
Thanks
DAnny

permanent link
Paulo Lacerda (3174) | answered Oct 20 '10, 2:58 p.m.
You can export the worksheet to a CSV file and use the Microsoft ODBC Text Driver. Using the Excel ODBC driver requires that you define a name for the data cells and it also has the drawback of the xls file being locked for some minutes after accessing the worksheet through that driver.

Hi,

I have requirement, load MS Excel file (.xls format) in to DB2 using RI cognos data manager. If it is possible how do configure the file .xls file in RI. Please help me from this issue.
Thanks in advance

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.