The TIME parameter in JCL specifies the maximum amount of CPU time that a job or job step is allowed to use. It helps prevent runaway jobs from consuming excessive system resources by setting time limits. TIME can be specified at both the JOB level (affecting all steps) and the EXEC level (for individual steps).
On JOB statement:
1//jobname JOB (accounting-information),programmer-name,TIME=value
On EXEC statement:
1//stepname EXEC PGM=program-name,TIME=value
The TIME parameter can be specified in several formats:
1//PAYROLL JOB (ACCT123),'JOHN SMITH',TIME=10
Limits the entire job to 10 minutes of CPU time
1//STEP1 EXEC PGM=IEBGENER,TIME=2
Limits this step to 2 minutes of CPU time
1//COPYSTEP EXEC PGM=IEBCOPY,TIME=(1,30)
Limits this step to 1 minute and 30 seconds of CPU time
1//LONGSTEP EXEC PGM=SORT,TIME=1440
Specifies no time limit for this step (1440 minutes = 24 hours)
1//TESTJOB JOB (ACCT456),'JANE DOE',TIME=0
Requests JCL checking only, without executing the job steps
1234//MULTI JOB (ACCT789),'DEVELOPER',TIME=5 //STEP1 EXEC PGM=PROG1 //STEP2 EXEC PGM=PROG2,TIME=10 //STEP3 EXEC PGM=PROG3
STEP1 and STEP3 use the JOB-level TIME limit of 5 minutes, while STEP2 overrides with 10 minutes
Value | Meaning | Usage |
---|---|---|
TIME=0 | Check JCL syntax only | Testing JCL without execution |
TIME=1440 | No time limit (24 hours) | Long-running jobs with unpredictable duration |
TIME=NOLIMIT | No time limit | Same as TIME=1440 |
TIME=MAXIMUM | Maximum allowed by installation | When you need the maximum available time |
Level | Effect | Limitations |
---|---|---|
JOB statement TIME | Limits total CPU time for all steps combined | Job terminates when combined time exceeds limit |
EXEC statement TIME | Limits CPU time for individual step | Step terminates when its time exceeds limit |
Job Type | Typical TIME Value |
---|---|
Simple utility functions (IEFBR14, IDCAMS) | 1 minute or less |
Compiles, assemblies | 2-5 minutes |
Medium-sized batch processing | 5-15 minutes |
Large database operations | 15-30 minutes |
Large sorts, complex analytics | 30-60 minutes |
Major batch processing, unpredictable workloads | 1440 (no limit) |