The JOBCLASS parameter (or simply CLASS parameter on the JOB statement) specifies the job class for the job. Job classes are used to group jobs with similar resource requirements, execution characteristics, and scheduling needs. This parameter helps system administrators manage system workload, prioritize jobs, and apply specific execution rules to groups of similar jobs.
1//jobname JOB accounting-info,programmer-name,CLASS=class
Abbreviated form:
1//jobname JOB accounting-info,programmer-name,CLASS=c
A single character (A-Z, 0-9, or *) that identifies the job class. The class defines processing attributes such as:
Job classes are defined by the system administrator through JES2 or JES3 initialization parameters. While specific meanings vary by installation, some common conventions include:
Class | Typical Use | Characteristics |
---|---|---|
A | Standard batch jobs | Medium priority, moderate resource limits |
B-E | Regular production work | Various priority levels and resource allocations |
P, H | High-priority production | Highest priority, generous resource limits |
S, T | System tasks | Special system privileges |
X, Y, Z | Test jobs | Lower priority, restricted resources |
0-9 | Varies by installation | Often used for specialized workloads |
* | Special handling | Processing determined by JES exits or job name |
Note: The meaning of each job class is installation-specific. Always consult your site's standards documentation or system administrator to understand the job classes available in your environment and their characteristics.
In JES2, job classes can have various attributes defined, including:
In JES3, job classes (or "job class groups") can have attributes like:
1//PAYROLL JOB (ACCT123),'JOHN SMITH',CLASS=P
This job will run in class P, which might be a high-priority production class at the installation.
12//TESTJOB JOB (ACCT123),'JANE DEV',CLASS=T, // MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=&SYSUID
This test job runs in class T, sends messages to output class X, sets message level options, and notifies the submitter when the job completes.
1//REPORT JOB (ACCT123),'JANE DEV',MSGCLASS=A
Since the CLASS parameter is omitted, this job will execute in the default class (typically A).
When selecting a job class, consider:
Write a JOB statement for a production payroll job that requires high priority processing. Use appropriate CLASS and MSGCLASS parameters.
Create a JOB statement for a test job that should run in a low-priority class, have job messages sent to output class X, and notify you when the job completes.
1. What does the CLASS parameter specify in JCL?
2. If the CLASS parameter is omitted, what typically happens?
3. Which of the following is NOT typically determined by a job's CLASS?
4. Which character set is valid for CLASS values?
Explore the JES2 job processing system and its components.
Explore the JES3 job processing system and its components.
Learn about the different components of the job processing system in z/OS and their roles in managing jobs.
Explore the different system commands available in z/OS and their uses.