Generating requested statistics
To generate requested statistics:
- Ensure that the StatFile attribute in the RD is set. This attribute specifies the file to which CICS® writes statistical output.
- Use the EXEC CICS PERFORM STATISTICS RECORD command to request all or specific resource statistics that are currently held. For example, to request only terminal statistics, use the EXEC CICS PERFORM STATISTICS RECORD TERMINAL command to send output to the file that is specified by the StatFile attribute in the RD.
You can also use the EXEC CICS PERFORM STATISTICS RECORD ALL RESET NOW command to reset the statistics values to zero.
The EXEC CICS COLLECT STATISTICS command returns current statistics for a single named resource or the global summary statistics for a named resource type to the invoking application. For example, you can get the statistics for all programs in your CICS system, or for only a single program.