DIRECT
Requirements and restrictions
The following requirements and restrictions apply to the DIRECT option:
- In your SYSIN command stream, place any DIRECT option specification immediately after your UNLOAD or UNLOAD-TABLESPACE option.
- If you specify the DIRECT option more than once in your JCL, BMC AMI Utilities terminate.
- You must specify DIRECT YES when you are performing data translation during the unload process.
You must specify DIRECT NO when you are unloading LOB or XML data to standard unload data sets (SYSREC).
YES | If you specify DIRECT YES, BMC AMI Utilities use its SELECT syntax to read table data directly from the table space data set. If the SELECT statement contains syntax that is not within the scope of the BMC AMI Utilities UNLOAD syntax, the utility terminates. This option provides high-performance unloads of Db2 table data, but might limit the functionality that the SELECT statement provides. BMC AMI Utilities terminate when you specify DIRECT YES for any of the structures and data types that require DIRECT NO. If you specify FORMAT STANDARD or FORMAT EXTERNAL with DIRECT YES, BMC AMI Utilities unload string constants in SELECT statements as fixed-length strings. | ||||||
---|---|---|---|---|---|---|---|
NO | If you specify DIRECT NO, BMC AMI Utilities use Db2 dynamic SQL to process the SELECT statement and read the table data. The DIRECT NO option enables the full range of functionality that the Db2 SQL SELECT statement provides. DIRECT NO is not a high-performance solution for unloading large volumes of data. Note the following restrictions and other considerations for the DIRECT NO option:
| ||||||
ROWSETSZ | The ROWSETSZ option allows you to tell BMC AMI Utilities how many rows to include in a rowset for a single FETCH request. You can specify one of the values described in the following table:
| ||||||
AUTO | If you specify DIRECT AUTO, BMC AMI Utilities choose between processing the job as if you specified DIRECT YES, or processing it as if you specified DIRECT NO. If a SELECT statement contains statements that are not within the scope of the BMC AMI Utilities SELECT-like syntax, BMC AMI Utilities use Db2 dynamic SQL to read the data when processing the SELECT statement. If BMC AMI Utilities detect incompatibility between the unloaded data formats generated by DIRECT YES and DIRECT NO, it chooses DIRECT NO. |