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


Examples of the TIME parameter on JOB and EXEC statements

z/OS MVS JCL Reference
SA23-1385-00

Note: The following examples assume the default time limit (set by the installation) to be greater than the TIME=parameter specified in each example.
Example 1
//FIRST JOB     ,SMITH,TIME=2
//STEP1 EXEC    PGM=READER,TIME=1
         .
         .
         .
//STEP2 EXEC    PGM=WRITER,TIME=1
         .

In this example, the job is allowed 2 minutes for execution and each step is allowed 1 minute. If either step continues executing beyond 1 minute, the entire job abnormally terminates beginning with that step.

Example 2
//SECOND JOB     ,JONES,TIME=3
//STEP1  EXEC    PGM=ADDER,TIME=2
          .
          .
          .
//STEP2  EXEC    PGM=PRINT,TIME=2
          .

In this example, the job is allowed 3 minutes for execution, and each step is allowed 2 minutes. If either step continues executing beyond 2 minutes, the entire job abnormally terminates beginning with that step. If STEP1 executes for 1.74 minutes and STEP2 tries to execute beyond 1.26 minutes, the job abnormally terminates because of the 3-minute limit specified on the JOB statement.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014