Sharing files between programs (external files)

To enable separately compiled programs or methods in a run unit to access a file as a common file, use the EXTERNAL clause for the file.

It is recommended that you follow these guidelines:

Using an external file has these benefits:

Example: using external files

related references  
EXTERNAL clause (COBOL for AIX Language Reference)