z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Directing output in ILC applications

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

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 the runtime output and the user-specified output directed to the same destination, like under OS PL/I, by specifying MSGFILE(SYSPRINT). See the IBM Enterprise PL/I for z/OS library for details of 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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014