Directing Base output to a data set instead of to JES spool

By default, if messages and trace data are requested, the AGMAPROC JCL sends them to a dynamically allocated Data Definition (DD) that is directed to the JES spool. If JES spool space is limited, consider directing Base output to a data set.

About this task

If a SYSPRINT DD statement is included in AGMAPROC, all messages and trace data are directed to SYSPRINT. SYSPRINT is then redirected to a data set. This can be useful when JES spool space is limited and you prefer output to be directed to a data set rather than to spool.

Procedure

Modify the AGMAPROC JCL procedure to include a SYSPRINT DD statement.
Ensure that the SYSPRINT data set is large enough to avoid an x37 ABEND. For example:
//SYSPRINT DD DSN=hlq.SYSPRINT,DCB=(DSORG=PS,LRECL=121), etc