DB2LOAD statement and parameter
The DB2LOAD statement specifies that the data collected to produce the reports is also written to a data set in a format that can be loaded into Db2 tables using the Db2 Load utility.
The DB2LOAD statement applies to the data that is collected for all reports that are produced by subsequent REPORT statements in the same job stream. The NODB2LOAD statement specifies that no data set is produced. NODB2LOAD is the default.
When used as a parameter of the REPORT statement, DB2LOAD applies only to the reports specified in that REPORT statement. A DB2LOAD or NODB2LOAD parameter of a REPORT statement overrides any DB2LOAD or NODB2LOAD statement that was previously specified.
The only valid abbreviation for DB2LOAD is DB2L, and the only valid abbreviation for NODB2LOAD is NODB2L. The following figure displays the syntax of the DB2LOAD statement and parameter.
To use DB2LOAD, you must define a DB2LOAD DD statement in your JCL to show the data set to hold the loaded data. For an example, see Loading-Apptune-data-into-Db2-tables.
The reports listed in the following table were designed specifically to be used with the DB2LOAD statement or parameter to produce data in a tabular format. There is a field in each group that corresponds to each field in the relevant record, and a group that corresponds to each record.
Reports used with DB2LOAD statement or parameter
Report | Description |
---|---|
LOAD004 | SQL exceptions |
LOAD007 | SQL errors (SQLCA) |
LOAD008 | Object statistics (per SQL statement) |
LOAD009 | Object statistics (per interval) |
LOAD307 | SQL statement summary (all qualifiers) |
Because the format of the loaded data or DDL generated by this statement or parameter is determined by the definition of the report that is used to generate the data, any change to the report definition also changes the format of the data or DDL that is generated. The data that is generated using the changed report no longer matches the Db2 table definition that was generated using the previous version.
The DB2LOAD reports shown in the Reports used with DB2LOAD statement or parameter table can change from one release of Apptune to another to accommodate changes in the records. To keep these changes from affecting your report, take one of the following actions:
- Create a new table or tables corresponding to the new report without attempting to load data from the old report
Modify the old tables to include the changes in the new report
The data that is produced by this DB2LOAD parameter is used as input to the DOMBLOD1 utility to produce appropriate CREATE TABLE DDL and Load utility control statements. For instructions, see DOMBLOD1-utility.
Related topic