Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Using data in input and output operations

Define the data that you use in input and output operations in the FILE SECTION.

Provide the following information about the data:

Programs in the same run unit can share, or have access to, common files. The method for doing this depends on whether the programs are part of a nested (contained) structure or are separately compiled (including programs compiled as part of a batch sequence).

You can use the EXTERNAL clause for separately compiled programs. A file that is defined as EXTERNAL can be referenced by any program in the run unit that describes the file.

You can use the GLOBAL clause for programs in a nested, or contained, structure. If a program contains another program (directly or indirectly), both programs can access a common file by referencing a GLOBAL file-name.

related concepts  
Nested programs

related references  
FILE SECTION entries


Terms of use | Feedback

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