The &LOCK verb lets you obtain and release resource locks.
If a process has exclusive control of a resource lock, all other processes in the system are prevented from gaining access to the resource at the same time. Alternatively, the process can gain shared access to the resource lock, which prevents any other procedure from being granted exclusive access. If necessary, you can alter the status of the lock from shared to exclusive, or from exclusive to shared, during processing.
A procedure can also use &LOCK to test whether any other procedure is holding a lock that it wants to access.
Note: For more information about the &LOCK verb, see the Network Control Language Reference Guide.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |