z/OS DFSMSdfp Checkpoint/Restart
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Job and Job Step Accounting

z/OS DFSMSdfp Checkpoint/Restart
SC23-6862-00

The system accumulates processor time used for each job step and job. To access these time values, an installation can provide an accounting routine to receive control at step initiation, step termination, and job termination. Accounting routines are discussed in z/OS MVS Programming: Authorized Assembler Services Guide. The relationships between checkpoint/restart and the step time and job time values available to the accounting routine are listed below:
  • At termination (either normal or abnormal) of an original execution, the step and job times accumulated are available to the accounting routine.
  • At initiation of the restart step during an automatic restart, the step and job times accumulated for the original execution are again available to the accounting routine.
  • At initiation of the restart step during a deferred restart, the step and job times are zero.
  • At termination of a restart step and at all subsequent times when the accounting routine is given control during the restart execution, the step and job times reflect only the time used during the restart execution.
  • Checkpoint/restart restores the TCBUSER field to its value at the time of the checkpoint.
For example, in an original execution, Step A uses 2 minutes of processor time, and Step B uses 3 minutes of processor time and abnormally terminates. At step termination, the step time is 3 minutes and the job time is 5.
  • If automatic restart is performed for Step B, a step time of 3 minutes and a job time of 5 are again available to the accounting routine at the reinitiation of Step B.
  • If Step B then uses 4 minutes of processor time and terminates, a step time of 4 and a job time of 4 are available to the accounting routine at step termination.

The two values available at the time the restart step is initiated are provided for information purposes only. They are not reflected in the step and job running times presented at termination time of the restarted job. You will not be charged twice for the time accumulated up to the abend.

Another point to consider in your accounting routine is the effect of a restart on the step sequence number available to the accounting routine. The following list indicates the sequence number presented to the accounting routine under the various restart conditions:

Condition Step Sequence Value for Step n
Original execution n
Automatic step restart 1
Automatic checkpoint/restart n+1
Deferred step restart 1
Deferred checkpoint/restart 2

Whenever an automatic restart is performed, the step sequence value accurately reflects the position of the step in the job.

In the case of a deferred restart, the restarting step is the first step of the restart job.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014