The following table summarizes functions related to field locks.
|
|
*READ Lock |
*EXCL Lock |
|---|---|---|
|
Setting |
As *DSNR or *PGMR, perform an action that uses a field. In this case, only the field is locked. |
As *DSNR, access the Edit Field Details panel. An *EXCL lock is also set on the field’s referencing file, if any. |
|
Displaying |
Enter L=Locks against a field (when available) to view locked fields using the Object Lock panel. Note: L=Locks is available on most panels that access the Edit Field Details panel. |
To view field locks, enter L=Locks against a field (when available) to display the Object Lock panel. To view associated file locks, press F22=File Locks (when available). Note: F22=File Locks is displayed only if the model value YOPNACC is set to *YES. |
|
Removing |
Exit panel where lock has been set; e.g., return to the Edit Database Relations panel. |
Press Enter and exit the Edit Field Details panel. All associated field and file locks are also removed. |
|
Notes: |
Multiple *READ locks can exist on a field. An *EXCL lock cannot be set on a field until all *READ locks are removed. |
Only one *EXCL lock can be set on a field at a time. If the locked field is referenced by other fields, all (REF) fields in the domain are also locked. |
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |