Use OUTDD to specify that you want DISPLAY output that is directed to the system logical output device to go to a specific ddname.
You can specify a file in the hierarchical file system with the ddname named in OUTDD.
See the related task about displaying data for the behavior when this ddname is not allocated.
OUTDD option syntax

Default is: OUTDD(SYSOUT)
Abbreviations are: OUT
The MSGFILE runtime option allows you to specify the ddname of the file to which all runtime diagnostics and reports generated by
the RPTOPTS and RPTSTG runtime options are written.
The IBM-supplied default is MSGFILE(SYSOUT).
If the OUTDD compiler option and the MSGFILE runtime option both specify the same ddname, the error message information and
DISPLAY output directed to the system logical output device are routed to the same destination.
Restriction:
The OUTDD option has no effect under CICS.
© Copyright IBM Corp.