Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Compiler and Runtime Migration Guide


COBOL DISPLAY output (non-CICS)

When you run a COBOL-C ILC application under Language Environment, the SYSOUT DD will remain open until Language Environment terminates. This impacts any ILC application that has the following scenario:

  1. A C main program calls a COBOL program.
  2. The COBOL program uses the DISPLAY statement. The output from the DISPLAY statement is written to a data set associated with SYSOUT DD. The COBOL program returns to the C program.
  3. The C program opens the data set associated with the SYSOUT DD and reads the records written.

The scenario above worked with the VS COBOL II and pre-Language Environment C libraries because the VS COBOL II program was the main program (and thus, the VS COBOL II run time closed the SYSOUT DD when the COBOL program ended). Under Language Environment, the COBOL program is a subprogram, and Language Environment does not close the SYSOUT DD when the COBOL program returns to the C program.


Terms of use | Feedback

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