The CEDA LOCK command
Use the CEDA LOCK command to restrict update and delete access to a single operator identifier.
Syntax
Description
The group or list can be used, looked at, and copied by other users of RDO, but cannot be changed or deleted by them.
You can LOCK a nonexistent group or list, thereby reserving the named group or list for your own future use.
The only RDO command that releases a lock is the UNLOCK command. No other RDO commands can unlock a group or list. For example, if you DELETE all the resources in a group, or all the groups in a list, the lock remains.
You must specify either GROUP or LIST, even if you are locking the current group or list.
A generic group or list name is not accepted.
Locking and unlocking resources
The LOCK and UNLOCK commands enable you to control update access to a group or list so that only operators with the same operator identifier can make changes.
The lock is held on the CSD file and remains in effect across restarts of CICS®. The lock is owned by the user, who is identified by a combination of the CICS generic applid (specified by the APPLID system initialization parameter), and the user's operator identifier (OPIDENT).
- CHECK
- COPY
- DISPLAY
- INSTALL
- VIEW
The lock can be removed, using the UNLOCK command, only by a user on the same system and with the same operator identifier.
Options
- Group(groupname)
- specifies the group to be locked.
- List(listname)
- specifies the list to be locked.
Examples
- To lock a list L1:
LOCK LIST(L1)
- To lock a group G1:
LOCK GROUP(G1)