This section provides an overview of the SQLACTIVITY command.
Use the SQLACTIVITY command to reduce data, and to generate reports and traces.
(1) .-TRACE subcommand-------. >>-SQLACTIVITY--+------------------------+--------------------->< | (2) | '-REPORT subcommand------'
The subcommands are described in detail, together with their various options, in the following sections.
The following figure is a sample of the JCL required to produce SQL Activity reports and traces. A description of the DD statements follows the sample.
// PEMAIN EXEC PGM=FPECMAIN //* FOLLOWING ARE SYSTEM DDNAMES //STEPLIB DD DSN=FPE.FPELIB.RKANMOD,DISP=SHR //DPMPARMS DD DSN=MYID.FPELIB.DPMPARMS,DISP=SHR //INPUTDD DD DSN=MYID.FPELIB.DPMIN,DISP=SHR //DPMLOG DD SYSOUT=* //SYSOUT DD SYSOUT=* //JOBSUMDD DD SYSOUT=* //SYSPRMDD DD SYSOUT=* //DPMOUTDD DD DSN=MYID.FPELIB.DPMOUT.DATA,DISP=OLD //SYSUDUMP DD DUMMY //* FOLLOWING ARE REPORT SET DDNAMES //SQTRCDD1 DD SYSOUT=* //SQRPTDD DD SYSOUT=* //SQLWORK DD DSN=MYID.FPELIB.SQL.WORKDD,DISP=OLD //* FOLLOWING IS THE COMMAND STREAM //SYSIN DD *
·
·
·
SQLACTIVITY TRACE REPORT
·
·
·
EXEC
The OMEGAMON XE for DB2® PE command language shown in this section is not appropriate in all circumstances. You must modify it to meet your requirements.
Most of the DD statements with a SYSOUT destination do not have to be specified because they are dynamically allocated by OMEGAMON XE for DB2 PE.