Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)
The CLEAR-ITEM-LOCKS command can be used to clear a specific lock or all locks taken against a specific file. This command can only be used with jBASE hashed files. The command may take the general form:
CLEAR-ITEM-LOCKS filename itemname
CLEAR-ITEM-LOCKS should be used with extreme caution and only as a last resort.
The necessity to use CLEAR-ITEM-LOCKS is a definite indication of an application with a poorly designed locking strategy.
To clear a lock on a distributed file, the part file where the locked item exists must be specified.
Examples of use may be as:
CLEAR-ITEM-LOCKS INVENTORY PDT603
Clears the lock on the item PDT603 in the INVENTORY file.
Clears all item locks in place on the INVENTORY file.
CLEAR-ITEM-LOCKS CASE]M2002, R47FC9Z
Clears the lock on the item R47FC9Z in the multi-level file CASE, data section 2002.
See also SHOW-ITEM-LOCKS
Back to Tools and Utilities