Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact
🖥 JCL

JCL Job Scheduling Concepts

Intermediate 🕑 12 min read 👁 0 views

12

Code Example


## JCL Job Scheduling Concepts

Control when and how jobs execute using scheduling parameters and dependencies.

### CLASS Parameter
\`\`\`jcl
//JOBNAME JOB ...,CLASS=A
\`\`\`
- Installation-defined meanings
- Controls execution priority
- May affect resources available

### PRTY Parameter
\`\`\`jcl
//JOBNAME JOB ...,PRTY=n
\`\`\`
- Priority within class (0-15)
- Higher number = higher priority
- JES2 vs JES3 differences

### TIME Parameter
\`\`\`jcl
//JOBNAME JOB ...,TIME=(mm,ss)
//JOBNAME JOB ...,TIME=1440  (no limit)
\`\`\`
- Limits CPU time
- Prevents runaway jobs
- Step and job level

### TYPRUN Parameter
\`\`\`jcl
TYPRUN=SCAN    Syntax check only
TYPRUN=HOLD    Submit but hold
TYPRUN=COPY    Copy to output only
\`\`\`

### Scheduling Systems
- CA-7
- TWS (Tivoli Workload Scheduler)
- Control-M
- AutoSys

### Dependencies
- Job to job
- File availability
- Time windows
- Resources