Job class
A letter on the JOB statement that says what kind of work the job is.
Also written CLASS
Why it matters. The site uses the class to decide when and where a job runs. Short test jobs and long production jobs do not share a queue.
See it
CLASS=A is a queue for short jobs at ZedBank.
Syntax
//jobname JOB ...,CLASS=c
- CLASS
- Usually one letter or digit. JES2 allows longer names.
- Default
- If you leave it out, the site's default class is used.
- Initiators
- Each class has initiators that run its jobs.
- Limits
- Time, memory and queue priority can differ by class.
- MSGCLASS
- A different thing: where the job log goes.
Try it CLASS
- 1
You're editing job CUSTCHK. Rewrite the JOB statement so the job runs in class B. Keep the other parts.
JCL //CUSTCHK JOB (ACCT),'CHECK',CLASS=B,MSGCLASS=X - 2
Submit the job CUSTCHK from your DEV JCL library.
SUBMIT 'ZB0001.DEV.JCL(CUSTCHK)' - 3
Read the job log, JESMSGLG. Find the class.
OUTPUT CUSTCHK JESMSGLG
Remember
- CLASS= on the JOB statement picks the queue.
- The site decides what each class means.
- Classes can set time limits, run times and how many jobs run at once.
The usual mistake
CLASS=B because it looks quicker than A
A letter is not a speed. B may be a slower queue, or one that only runs at night.
Use the class your team uses for that kind of work
On real z/OS
MF/OS shows the class in the job log and uses A when you leave it out. It does not queue by class or limit run time, so every class runs at once.
Where can I practise Job class?
Right here, at ZedBank. You take a junior job at a simulated bank and use Job class in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- JOB statementThe first statement in every job, giving it a name and telling the system who is running it and how to treat it.
- JES2The job entry subsystem: the part of z/OS that queues jobs, decides when they run, and collects their output.
- JobA unit of batch work submitted to the system, made up of one or more steps that run in order.
- SYSOUTOutput sent to the spool rather than to a dataset, where you can read it after the job finishes.
- SubmitHanding JCL to the system to be run, which queues it as a job and gives it a job number.