The CLASS parameter in JCL specifies a job class for the job. It determines which job queue the job will be placed in, the processing priority it will receive, and often dictates resource limitations or special processing requirements. Job classes are defined by the installation and are used to categorize and manage workload.
1//jobname JOB (accounting-information),programmer-name,CLASS=class
1//PAYROLL JOB (ACCT123),'JOHN SMITH',CLASS=A
Submits the job to run in CLASS A
12//REPORT JOB (ACCT456),'JANE DOE', // CLASS=B,MSGCLASS=X,NOTIFY=USER01
Submits the job to run in CLASS B with additional parameters
1//URGENT JOB (ACCT789),'OPS TEAM',CLASS=1,PRTY=15
Submits a high-priority job to run in CLASS 1 (typically for urgent processing)
1//BIGBATCH JOB (ACCT321),'BATCH OPS',CLASS=L,TIME=1440
Submits a long-running job to a class for jobs with extended runtime (CLASS L)
While these can vary by installation, common class assignments include:
Class | Typical Usage |
---|---|
A | Default class, short-running jobs |
B | Medium-sized batch jobs |
C | Compile jobs |
P | Production jobs |
L | Long-running jobs |
T | Test jobs |
0-9 | Numeric classes often indicate priority (9 highest) |