Redirecting streams with the MSGFILE option

Restriction: This section does not apply to AMODE 64.

You can redirect stderr by specifying a ddname on the MSGFILE runtime option and not redirecting stderr elsewhere (such as on the command line). The default ddname for the z/OS® Language Environment® MSGFILE is SYSOUT. See z/OS Language Environment Programming Guide for more information on MSGFILE.