IBM SC34-6814-04 Server User Manual


 
Resetting statistics counters
Statistics counters are reset in the following circumstances:
v At CICS startup
v When interval statistics are written (but not when an interval occurs and no
statistics are written)
v At end of day
v When requested reset statistics are written.
However, you can cause statistics counters to be reset without writing records to
the SMF data set. You do this by changing the statistics recording status, using
either of the commands:
v CEMT SET STATISTICS ON|OFF RESETNOW
v EXEC CICS SET STATISTICS ON|OFF RESETNOW.
Thus, a user program can reset all statistics counters by issuing an EXEC CICS
SET STATISTICS RESETNOW command.
Note that it is valid to specify the RESETNOW option only when there is a genuine
change of recording status. For example, coding EXEC CICS SET STATISTICS ON
RESETNOW when STATISTICS is already set ON causes an error response.
Important
Statistics counters are reset in various ways. Specific counters may be reset to:
v 0
v 1
v A new peak value
v Not reset
v None of the above.
For information about the resetting of specific statistics counters, refer to Resetting
statistics counters, in the CICS Performance Guide.
Using the EXEC CICS COLLECT and EXTRACT STATISTICS commands
The statistics collected by CICS are written to an SMF data set. However, a user
program can use the EXEC CICS COLLECT STATISTICS and EXEC CICS EXTRACT
STATISTICS commands to collect the current statistics for a particular resource, or
overall statistics for the resources of a particular type.
For example, you can get the statistics for global transaction activity in your CICS
region (such as the total number of transactions attached), or you can specify a
single transaction that you are interested in (such as CEMT). The statistics are
returned to the invoking application. For programming information about the EXEC
CICS COLLECT STATISTICS and EXEC CICS EXTRACT STATISTICS commands, see the
CICS System Programming Reference.
CICS supplies eleven sample programs that show how you can use the EXEC CICS
COLLECT STATISTICS, EXEC CICS EXTRACT STATISTICS, and EXEC CICS INQUIRE
commands to produce a useful analysis of a CICS system. These are:
v DFH0STAT
v DFH0STDB
v DFH0STEJ
770 Customization Guide