You can control file
locking for external files by using the LOCKINTERNAL option in the
FILENAME statement. The AUTO option value locks a file exclusively
for Write access, or non-exclusively for Read access. For example,
if a file is opened for update or output, then all other access from
internal processes will be blocked. If a file is opened for input,
then other users can also open the file for input. In this case, opening
the file for update and output will be blocked. The SHARED option
value allows for all of the behavior of the AUTO option, except that
the file can be shared by one writer and multiple readers. The external
file that is associated with the fileref is the file that is locked.
By default, multiple users can simultaneously read an external file.
For more information, see
FILENAME Statement: UNIX.