Exporting data from a DB2 database to another platform such as a spreadsheet can be useful for analysis purposes. Having extracted the required data from DB2 using RC/Extract, with a careful record selection process, into an extract object, it can be transferred to a spreadsheet or other database. It also means that additional sql access to the source database will not be required and so the data can be obtained without causing the system more sql traffic.
Release: R20
Component: RCX
The procedure is as follows:
An example of an exported extract object is below. It contains data from two tables, TBROLE and TBEMP. Note the {{START and the {{END lines that delimit the different table data.
For import into a spreadsheet or database the data that is needed is between these special lines.
CA RC/Extract Export Object AUTHID 03:06:012 2012.237 {{START T AUTHID.TBROLE 0001 11 ROLE_ID,ROLE_DESC,ROLE_SALARY,ROLE_SALARY_CODE AUDITO,AUDIT OFFICER,.,A CRANED,CRANE DRIVER,.,A DISPAT,DISPATCHER,.,A DISPMN,DISPATCH MANAGER,.,A DRIVER,GENERAL DRIVER,.,A MANAGE,MANAGER,.,A MATREC,MATERIALS RECEIVER,.,A PLANTO,PLANT OPERATOR,.,A RECMAN,RECEIVALS MANAGER,.,A STRMAN,STOREMAN,.,A WAREHS,WAREHOUSE MANAGER,.,A {{END T AUTHID.TBROLE {{START T AUTHID.TBEMP_TASK_ROLE 0007 1 EMPNO,TASK_ID,ROLE_ID 134800,111111,DRIVER {{END T AUTHID.TBEMP_TASK_ROLE
For more information about this facility see : View and Export Data for Extract Objects