JES2
The part of z/OS that takes in your job, queues it, runs it and keeps its output.
Also written JES, JES3, job entry subsystem
Why it matters. The messages that start with $HASP are JES2 talking. They tell you where your job is.
See it
Follow HELLO through the queue
Submit it, and watch JES2 take it from there.
- 1Taken in
- 2Waits its turn
- 3Runs
- 4Ends, output kept
READY SUBMIT 'ZBANK.DEV.JCL(HELLO)'
Syntax
$HASP100 jobname ON INTRDR $HASP373 jobname STARTED - INIT n - CLASS c - SYS name $HASP395 jobname ENDED - RC=nnnn
- Input
- JES2 reads the job and gives it a number.
- Conversion
- The JCL is checked and turned into work for the system.
- Execution
- An initiator runs the job's steps.
- Output
- The spool output waits for print or for you to read it.
- Purge
- JES2 removes the job when its output is done.
Try it SUBMIT
- 1
Send the job CUSTCHK to run.
SUBMIT 'ZB0001.DEV.JCL(CUSTCHK)' - 2
Read the job log that JES2 kept, JESMSGLG.
OUTPUT CUSTCHK JESMSGLG
Remember
- JES2 reads in jobs, queues them, starts them and keeps the output.
- $HASP messages come from JES2.
- The job number is JES2's way to find your job.
The usual mistake
Waiting at READY for the job to print its result
SUBMIT only hands the job to JES2. The job runs on its own, and its output waits in the spool.
Keep the job number, then read the output with OUTPUT
On real z/OS
MF/OS simulates one JES2 system with the commands a learner needs. Real JES2 can join several systems in a multi-access spool, route jobs between nodes and print on devices. The $HASP lines at READY after SUBMIT are shown as a teaching aid; on z/OS they go to the console and SDSF, not the TSO screen.
Where can I practise JES2?
Right here, at ZedBank. You take a junior job at a simulated bank and use JES2 in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- JobA unit of batch work submitted to the system, made up of one or more steps that run in order.
- SpoolThe system-managed holding area where job output waits to be read, printed or purged.
- SDSFThe tool for looking at what jobs are running, what has finished, and what output they produced.
- SubmitHanding JCL to the system to be run, which queues it as a job and gives it a job number.
- Job classA single-character label on a job that tells the system what kind of work it is and how to schedule it.