Page 1 of 1

How to download DB2 table data into a file or excel sheet?

Posted: Tue Feb 25, 2014 1:22 pm
by toravi.etl
Hi,

Any one can please help me How to download DB2 table data into a file or excel sheet into my machine.Im new to mainframes.Please explain step by step any one.

Regards,
Ravi

Posted: Tue Feb 25, 2014 7:00 pm
by NicC
Are you unloading the entire table or selected data? Are you using a bespoke program to get this data or a utility. If a bespoke program then you can write it to produce its output as a CSV which can then be FTP'd to you desktop. Ensure that the unloaded data is eye-readeble (without packed decimal fields).

Your best bet as to how to do it is to consult with the person who gave you the task and your co-workers.

Posted: Tue Feb 25, 2014 11:01 pm
by DikDude
Work with somone who knows db2 on the mainframe to select the data you want to load kinto the spreadsheet(s).
Create a data-delimited file on the mainframe (i prefer the tab character - x'05').
When downloaded to the pc, it will import directly into Excel.

Posted: Wed Feb 26, 2014 3:02 pm
by payilagamch
You can use BMC ADUUMAIN utility to unload the table into a dataset in CSV format. Then you can FTP the dataset to Excel sheet and delimit the comuns in the excel sheets by going to DATA --> Text to columns in Excel