z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


&SYSCPU and &SYSSRV

z/OS TSO/E CLISTs
SA32-0978-00

&SYSCPU provides the number of seconds of central processing unit (CPU) time used during the session in the form: seconds.hundredths_of_seconds.

&SYSSRV provides the number of System Resource Manager (SRM) service units used during the session.

These variables can be used for measuring the performance of applications and reporting session duration to the user.

For example, to measure the performance of an application invoked from a CLIST, you can code the following:
SET CPU = &SYSCPU
SET SRV = &SYSSRV
call mylib(payroll) '50,84'
SET CPU = &STR(&SYSCPU-&CPU)
SET SRV = &STR(&SYSSRV-&SRV)
call mylib(calc) '&STR(&CPU),&STR(&SRV)' /* Measure performance */
⋮
                       /* Do calculations and pass back results */
⋮
WRITE &CPU &SRV
The user can then see the number of seconds of CPU time and SRM service units used by the program PAYROLL.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014