z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of the TIME parameter

z/OS MVS JCL Reference
SA23-1385-00

For examples of TIME coded on both the JOB and EXEC statements, see Examples of the TIME parameter on JOB and EXEC statements.

Example 1
//STEP1  EXEC PGM=GRYS,TIME=(12,10)

This statement specifies that the maximum amount of time the step can use the processor is 12 minutes, 10 seconds.

Example 2
//FOUR  EXEC PGM=JPLUS,TIME=(,30)

This statement specifies that the maximum amount of time the step can use the processor is 30 seconds.

Example 3
//INT  EXEC PGM=CALC,TIME=5

This statement specifies that the maximum amount of time the step can use the processor is 5 minutes.

Example 4
//LONG  EXEC PGM=INVANL,TIME=NOLIMIT

This statement specifies that the step can have unlimited use of the processor. Therefore, the step can use the processor and can remain in a wait state for an unspecified period of time, if not restricted by the JOB statement TIME parameter.

Example 5
//STP4  EXEC PROC=BILLING,TIME.PAID=(45,30),TIME.BILL=(112,59)

This statement calls cataloged or in-stream procedure BILLING. The statement specifies different time limits for each of the procedure steps: PAID and BILL.

Example 6
//STP6  EXEC  PGM=TIMECARD,TIME=MAXIMUM

This statement specifies that the step can use the processor for 357912 minutes, if not restricted by the JOB statement TIME parameter.

Example 7
//TEST1 JOB MSGLEVEL=(1,1)
//STEP1 EXEC PGM=USES40,TIME=(,50)
//STEP2 EXEC PGM=USESREST,TIME=0

STEP1 can use the processor for 50 seconds. If STEP1 actually uses the processor for only 40 seconds, STEP2 can use the processor for 10 seconds, because that is the time remaining from the previous step.

Example 8
//TEST1 JOB MSGLEVEL=(1,1),TIME=(,50)
//STEP1 EXEC PGM=USES15,TIME=(,25)
//STEP2 EXEC PGM=USES30,TIME=(,40)
//STEP3 EXEC PGM=USESREST,TIME=0
STEP1 can use the processor for 25 seconds. If STEP1 actually uses the processor for only 15 seconds, the time limit for STEP2 is the smaller of the following values:
  • The job time remaining (35 seconds)
  • The time limit specified on the EXEC statement for STEP2 (40 seconds).

In this case, the job time remaining is the smaller value, so STEP2 can use the processor for 35 seconds. If STEP2, then, actually uses the processor for only 30 seconds, STEP3 can use the processor for 5 seconds, because that is the time remaining from the previous step.

Example 9
//TEST2 JOB MSGLEVEL=(1,1),TIME=8,CLASS=5
//STEP1 EXEC PGM=USES4
//STEP2 EXEC PGM=USESREST
Assume that the default time limit for class 5 is 5 minutes. The time limit for STEP1 is 5 minutes (the default). If STEP1 actually uses the processor for 4 minutes, the time limit for STEP2 is the smaller of the following values:
  • The job time remaining (4 minutes)
  • The default time limit (5 minutes).

In this case, the job time remaining is the smaller value, so STEP2 can use the processor for 4 minutes.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014