Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.2, Programming Guide

Sharing input

To share SYSIN with a C program, you must compile the application with the STDSYS option and open SYSIN as an input stream file or avoid using the DD names that are reserved by the C Library. You can also copy SYSIN to a temporary data set in a prior job step and use that as SYSIN in your PL/I job step; it can be shared when it is not allocated to an instream file.

An input stream file can be opened only once when it is allocated to the SYSIN DD in JCL.

Behavior of the standard C stream for sharing input under MVS batch, TSO batch, IMS batch, and IMS interactive is as follows:

stdin goes to DD:SYSIN. If DD:SYSIN does not exist, all read operations from stdin fails.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)