Previous Topic: Setting File Locks

Next Topic: More Information

*READ File Locks

*READ file locks let several developers use a file at one time and prevent *DSNRs from updating the file. Each developer using the file sets a separate *READ lock. A *DSNR must wait until all *READ locks are removed before setting an *EXCL lock to update the file. A *READ lock cannot be changed to another lock type.

Operations that set *READ locks include, viewing access paths for a file, loading a function, and specifying a file or access path as a parameter detail.

If a *DSNR attempts to use a file when the model is unsynchronized, before setting the requested *READ lock on the file,CA 2E expands the file and temporarily sets an *EXCL lock on all files in the expansion path. When the expansion completes, the *EXCL locks are removed, a *READ lock is set on the file, and the requested operation is performed.

Note: If CA 2E finds a lock on a file in the expansion path, the *DSNR will not be able to perform the operation until the lock is removed.