ACCOUNTING command

This section provides an overview of the ACCOUNTING command.

Usage

Use the ACCOUNTING command to generate Accounting reports, traces, and data sets. You can also use it to reduce, save, and restore data.

Usage notes

Syntax

Read syntax diagramSkip visual syntax diagram                                   (1)
               .-REPORT subcommand-------.
>>-ACCOUNTING--+-------------------------+---------------------><
               |                   (2)   |
               +-REDUCE subcommand-------+
               |                 (3)     |
               +-SAVE subcommand---------+
               |                    (4)  |
               +-RESTORE subcommand------+
               |                  (5)    |
               +-TRACE subcommand--------+
               |                 (6)     |
               '-FILE subcommand---------'
 

Notes:
  1. You can specify REPORT up to 35 times.
  2. You can specify REDUCE only once. If specified, you must also specify REPORT or SAVE at least once.
  3. You can specify SAVE only once.
  4. You can specify RESTORE only once.
  5. You can specify TRACE up to five times.
  6. You can specify FILE up to five times.

Subcommands

The subcommands are described in detail, together with their various options, in the following sections.

Sample JCL for requesting Accounting functions

This is a sample of the JCL required to produce Accounting reports and traces. See DD statements for descriptions of the DD statements.

The OMEGAMON® XE for DB2® PE command language shown in this example may not be 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.

Note:
  1. There is an advantage in omitting DPMOUTDD from your JCL. For more information, see DPMOUTDD statement.
  2. If you omit the EXEC statement, a report is not produced, the syntax of the OMEGAMON XE for DB2 PE command stream is checked and written together with any information, warning, or error messages generated to the DBPMLOG data set. All statements following the EXEC are ignored.

Figure 3. Sample JCL for requesting Accounting functions
 //        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
 //DISTDD   DD  DSN=MYID.FPELIB.DIST.DATA,DISP=OLD
 //SYSUDUMP DD  DUMMY
 //* FOLLOWING ARE REPORT SET DDNAMES
 //ACRPTDD  DD  SYSOUT=*
 //ACTRCDD1 DD  SYSOUT=*
 //ACSAVDD  DD  DSN=MYID.FPELIB.ACSAV.DATA,DISP=OLD
 //ACRSTDD  DD  DSN=MYID.FPELIB.ACRST.DATA,DISP=SHR
 //ACFILDD1 DD  DSN=MYID.FPELIB.ACC.FILE,DISP=OLD
 //ACWORK   DD  DSN=MYID.FPELIB.ACC.WORKDD,DISP=OLD
 //* FOLLOWING IS THE COMMAND STREAM
 //SYSIN   DD  *
ACCOUNTING
   REDUCE
   RESTORE
   TRACE
   FILE
   REPORT
   SAVE
EXEC