This section provides an overview of the STATISTICS command.
Use the STATISTICS command to generate Statistics reports, traces, and file data sets. You can also use it to reduce, save, and restore data.
(1) .-REPORT subcommand-------. >>-STATISTICS--+-------------------------+--------------------->< | (2) | +-REDUCE subcommand-------+ | (3) | +-SAVE subcommand---------+ | (4) | +-RESTORE subcommand------+ | (5) | +-TRACE subcommand--------+ | (6) | '-FILE subcommand---------'
The subcommands are described in detail, together with their various options, in the following sections.
Figure 9 is a sample of the JCL required to produce statistic reports and traces. See DD statements for descriptions of the DD statements.
// 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=* //EXCPTDD DD DSN=MYID.EXCEPT.THRESH,DISP=OLD //EXTRCDD1 DD SYSOUT=* //EXFILDD1 DD DSN=MYID.EXCEPT.LOGFILE,DISP=OLD //DPMOUTDD DD DSN=MYID.FPELIB.DPMOUT.DATA,DISP=OLD //JSSRSDD DD DSN=MYID.FPELIB.JSSRS.DATA,DISP=OLD //SYSUDUMP DD DUMMY //* FOLLOWING ARE REPORT SET DDNAMES //STRPTDD DD SYSOUT=* //STTRCDD1 DD SYSOUT=* //STSAVDD DD DSN=MYID.FPELIB.STSAV.DATA,DISP=OLD //STRSTDD DD DSN=MYID.FPELIB.STRST.DATA,DISP=SHR //STFILDD1 DD DSN=MYID.FPELIB.STFIL.DATA,DISP=SHR //STWORK DD DSN=MYID.FPELIB.STA.WORKDD,DISP=OLD //* FOLLOWING IS THE COMMAND STREAM //SYSIN DD *
·
·
·
STATISTICS REDUCE TRACE REPORT RESTORE SAVE FILE
·
·
·
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. See the individual DD statement descriptions for more information.