SYSOUT
Output sent to the spool, where you can read it after the job ends.
Also written SYSOUT class, print output
Why it matters. A job has no screen. SYSOUT is how it leaves something for you to read.
See it
The asterisk means: use the same class as MSGCLASS on the JOB card.
Syntax
//ddname DD SYSOUT=* //ddname DD SYSOUT=class[,COPIES=n][,DEST=name]
- SYSOUT=*
- Use the same class as MSGCLASS on the JOB statement.
- SYSOUT=class
- A letter or digit chosen by the site, such as A for print.
- DEST
- Where to send it.
- COPIES
- How many copies.
- HOLD
- Keep it in the queue until released.
Try it SYSOUT
- 1
You're editing job PRINTCPY, a copy step. Write the DD that sends the copy, SYSUT2, to the spool. Use the standard class star.
JCL //SYSUT2 DD SYSOUT=* - 2
Submit the job PRINTCPY from your DEV JCL library.
SUBMIT 'ZB0001.DEV.JCL(PRINTCPY)' - 3
Read what the step wrote to SYSUT2.
OUTPUT PRINTCPY STEP1.SYSUT2
Remember
- SYSOUT=* sends output to the spool.
- You read it with OUTPUT, or in SDSF on a real system.
- The letter after SYSOUT= is the class. A star means the job's own class.
The usual mistake
A report DD with DSN=ZB0001.DEV.REPORT when you only want to read it once
You would have to make the file, give it space, and delete it later.
//REPORT DD SYSOUT=*
On real z/OS
Real output is read in SDSF, or the spool is routed to a printer or saved. MF/OS keeps the spool for each job in your database, with no automatic clean-up, and reads it with OUTPUT.
Where can I practise SYSOUT?
Right here, at ZedBank. You take a junior job at a simulated bank and use SYSOUT in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- 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.
- DD statementThe JCL statement that connects a name inside a program to a real dataset outside it.
- SYSPRINTThe conventional DD name a program uses for its messages and report output.
- JobA unit of batch work submitted to the system, made up of one or more steps that run in order.