The SYSTSPRT DD statement is used to control the output from your background job. By specifying different operands on this statement, you can have the output listed on a system printer, placed in a specified data set for later use, or held in a work data set, so you can look at it using the OUTPUT command.
If you want to see your output as soon as the job has executed, hold the output and specify the NOTIFY=user ID operand on the JOB statement. NOTIFY causes a message to be displayed at your terminal when the job completes. For example, assume that you specified NOTIFY=your user ID on the JOB statement. To hold the output, enter:
//SYSTSPRT DD SYSOUT=H
where H is a held class and MSGCLASS=H is also specified on the JOB statement.
You can also hold output by specifying:
//SYSTSPRT DD SYSOUT=N,HOLD=YES
where N is not a held class.
You might not always want to hold a job's output. To not hold a job's output, specify the SYSOUT operand with the non-held output class value. For example,
//SYSTSPRT DD SYSOUT=N
where N is the installation-defined class for output that is not held.
You can write a job's output to a specified data set. For example, to write a job's output to new data set PREFIX.JOBOUT.DATA, code the following:
//SYSTSPRT DD DSN=PREFIX.JOBOUT.DATA,DISP=NEW,SPACE=(TRK,5,5),
UNIT=SYSDA
To write a job's output to old data set PREFIX.OLDOUT.DATA, specify the following:
//SYSTSPRT DD DSN=PREFIX.OLDOUT.DATA,DISP=OLD
© Copyright IBM Corp. 1988, 2000
Return to library: [ OS/390 | TPF | VM | VSE | IBM Hardware | S/390 Redbooks | RS/6000 SP ]
Glossary - IBM Dictionary of Computing
How to: [ Order publications | Contact OS/390 ]