Directing output in ILC applications

Under Language Environment, PL/I runtime output such as runtime messages and ON condition SNAP output is directed to the destination specified in the Language Environment runtime option MSGFILE. The PL/I user-specified output, such as the output of the PUT SKIP LIST statement, remains directed to the PL/I STREAM PRINT file SYSPRINT. You can still have runtime and user-specified output directed to the same destination, as under OS PL/I, by specifying MSGFILE(SYSPRINT). Seethe IBM Enterprise PL/I for z/OS library. for details about using the MSGFILE(SYSPRINT) option.

Under Language Environment, C runtime output such as runtime messages is directed to the destination specified in the Language Environment runtime option MSGFILE. stderr output is also directed to the destination of the MSGFILE option. Normally, stdout output is not directed to the destination of the MSGFILE option. You can redirect stdout output to the destination of the MSGFILE option by passing arguments 1>&2 to a C main routine, where 1>&2 associates stdout with stderr, or by placing stdout=stderr in your program. For information about redirecting C output, see z/OS XL C/C++ Programming Guide.