Mainframes 360
The one stop destination for System Z professionals

Wednesday, April 1, 2009

OUTPUT Statement – Changing default SYSOUT output to a remote location


Question

What is the OUTPUT JCL Statement? How do change the default destination of the SYSOUT output messages to a remote location?
A. When we would like to do some formatting/processing, on SYSOUT output datasets, we use a JCL Statement called OUTPUT. To specify the destination of the SYSOUT output dataset, as a remote location, we must code DEST parameter on the OUTPUT JCL Statement.

//OUT1  OUTPUT  DEFAULT=YES,DEST=RMT

In the above example, the SYSOUT dataset output will be sent to the remote location RMT. Also, this will stand as the default. 

Apart from this, we can specify various options, we can print multiple copies of the output dataset, using COPIES parameter. Moreover, we can write OUTPUT statement at the job-level or step-level. To refer back to previous OUTPUT statement, we can use refer-back.

Refer-back  
*.OUT1          - *.outname
*.STEP01.OUT1   - *.stepname.outname

To many people who are thrown to work at a mainframe computer on their first job, they feel lost. Mainframe people seem to speak a completely different language and that doesn't make life easy. What's more, the books and manuals are incredibly hard to comprehend.

"What on earth is a Mainframe?" is an absolute beginner's guide to mainframe computers. We'll introduce you to the hardware and peripherals. We'll talk about the operating system, the software installed on a mainframe. We'll also talk about the different people who work on a mainframe. In a nutshell, we'll de-mystify the mainframe.

Readers based in India, can buy the e-book for Rs. 50 only or the print book. International readers based in the US and other countries can click here to purchase the e-book.