Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

SHARE

The SHARE option specifies the level of file sharing to be allowed.

Read syntax diagramSkip visual syntax diagram            .-NONE-.
>>-SHARE--(-+-READ-+-)-----------------------------------------><
            '-ALL--'
 
NONE
Specifies that the file is not to be shared with other processes. This is the default.
READ
Specifies that other processes can read the file.
ALL
Specifies that other processes can read or write the file. Data integrity is the user's responsibility, and PL/I provides no assistance in maintaining it.

This option is valid only with DDM files.

To enable record-level locking, specify SHARE(ALL) and declare the file as an update file. This is recommended when running CICS applications.

The UNDEFINEDFILE condition is raised if the requested or default level of file sharing cannot be obtained.

Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide