TIME Parameter Example
Scenario1 - TIME=1440 at the job level.
//MTHEXMP1 JOB (META007),'PAWAN Y',TIME=1140
The job can use the processor for 24 hours time.
Scenario2 - TIME with minutes and seconds at job level.
//MTHEXMP2 JOB (META007),'PAWAN Y',TIME=(9,30)
The job can use the processor for 9 minutes and 30 seconds.
Scenario3 - TIME with only seconds at job level.
//MTHEXMP3 JOB (META007),'PAWAN Y',TIME=(,45)
The job can use the processor for 45 seconds.
Scenario4 - TIME=MAXIMUM at job level.
//MTHEXMP4 JOB (META007),'PAWAN Y',TIME=MAXIMUM
The job can use the processor for 248.55 days (357912 minutes).
Scenario5 - TIME parameter at step level.
//MTHEXMP1 JOB (META007),'PAWAN Y',NOTIFY=&SYSUID
//STEP01 EXEC PRG=A,TIME=2
STEP01 can use the 2 minites of the CPU time.
Scenario6 - TIME parameter at job and step level.
//MTHEXMP1 JOB (META007),'PAWAN Y',TIME=8
//STEP01 EXEC PRG=A,TIME=2
//STEP02 EXEC PRG=B
According to the code, the job can run for 8 minutes, and STEP01 can run for 2 minutes. However, if STEP01 ends in 2 minutes, the maximum available time for STEP02 is 6 minutes (JOB TIME – STEP01 TIME, i.e., 8-2). Because there is no TIME parameter at STEP02.
Scenario7 - TIME parameter at JOB and EXEC statements.
//MTHEXMP1 JOB (META007),'PAWAN Y',TIME=8
//STEP01 EXEC PRG=A,TIME=2
//STEP02 EXEC PRG=B,TIME=3
According to the code, the job can run for 8 minutes, STEP01 can run for 2 minutes, and STEP02 can run for 3 minutes. However, if STEP01 ends in 2 minutes, the maximum available time for STEP02 is still 3 minutes. Because the system picks the smallest among 3 minutes(coded at STEP02) and 6 minutes (JOB TIME – STEP01 TIME, i.e., 8-2).