Use the sample control statements as models for developing
your own DIAGNOSE control statements.
Example 1: Displaying DB2 MEPLs
The
following DIAGNOSE utility control statement specifies that the DB2® MEPLs
are to be displayed. You can use the output from this statement to
find the service level of a specific DB2 module.
The output lists each module, the most recent PTF or APAR that was
applied to the module, and the date that the PTF or APAR was installed.
Important: Specify DB2 load
libraries in the JOBLIB or STEPLIB of the DIAGNOSE DISPLAY MEPL job
that are at the same maintenance level as the load libraries for the DB2 subsystem on which you execute
the utility. Doing this ensures that the information that DIAGNOSE
DISPLAY MEPL reports reflects the current state of the DB2 subsystem.
DIAGNOSE
DISPLAY MEPL
Example 2: Forcing a dump
The following control statement forces a dump if an abend
occurs with either of the following reason codes: X'00E40322' or X'00E40323'.
DIAGNOSE
ALLDUMPS(X'00E40322',X'00E40323')
The
following control statement forces a dump for any utility abend that
occurs during the execution of the specified COPY job. The DIAGNOSE
END option ends DIAGNOSE processing.
DIAGNOSE
ALLDUMPS
COPY TABLESPACE DSNDB06.SYSDDF
DIAGNOSE END
Example 3: Performing a diagnosis of a specific type
The
control statement in this example specifies that you want to perform
a diagnosis of type 66. Run this job under the direction of IBM® Software Support to diagnose
problems with utility parallelism.
Example 4: Forcing a utility abend
The control statement in this example forces an abend
of the specified COPY job when one instance of message DSNU400 is
issued. The NODUMP option indicates that the DIAGNOSE utility is not
to generate a dump in this situation.
Example 5: Suspending utility execution
The
control statement in this example indicates that the specified COPYTOCOPY
job is to be suspended when it encounters 51 occurrences of the trace
ID X'2E6F'.
Example 6: Displaying only CLONE data
The control statement indicates that the DIAGNOSE utility is to be display information
for only the specified objects that are table clones, table spaces that contain clone tables,
indexes on clone tables, or index spaces that contain indexes on clone tables.