Exporting data from a table or view

Use the Step Properties notebook (for DB2 UDB export) to create a step that can be used to export data from a DB2 Universal Database table or view to a file located at the agent site.

The database server does not need to be on the agent site. However, the target file must be on the agent site. Specify the name of the target file as it is used on the agent site.

DB2 UDB export creates the target file if it does not exist, and replaces it if it exists.

Note: The source table, or view, and the target file must be linked.

Authorities and privileges

../rule.gif

To export data from a table or view:

  1. Open the step notebook for DB2 UDB export.

  2. Specify information for your step:

  3. Optional: On the Parameters page, specify information for the export step (the fields and controls on this page are available only if the step has a source table or view and a target file linked on the Process Modeler):

  4. On the Processing Options page, in the Agent Site list, select an agent site where you want your step to run. The selections in this list are agent sites that are common to the source tables, the target file, and the step that you are defining.

  5. If you want to have the option to run your step at any time, select the Run on demand checkbox. Your step must be in test or production mode before you can run it.

  6. Optional: Select the Populate externally check box if the step is populated externally, meaning that it is invoked in some way other than by the Data Warehouse Center. The step does not have to have any other means of running in the Data Warehouse Center in order to change the mode to production.

    If Populate externally is not selected, then the step must either have a schedule, be linked to a transient table that is input to another step, or be started by another program in order to change the mode to production.

  7. In the Retry area, specify how many times you want the step to run again if it needs to be retried and the amount of time that you want to pass before the next run of the step.

  8. Click OK to accept the parameters specified in this notebook and in the advanced Export notebook, if used, and save the export step.

Related information

Loading data into a table

Reorganizing a table

Running statistics on a table

For information about the format of delimited files, see the Administration Guide.