Top  Previous  Next


The RELEASE command releases record or file locks.





RELEASE filename id...





In the first form, RELEASE releases locks on the specified record id(s) in the named file. The second form releases the file lock on the named file.


RELEASE can only release locks held by the process in which the command is issued. System administrators can use the UNLOCK command to release locks held by other users.


Locks are released automatically when a file is closed. Applications can store file variables in a named common block so that the files remains open when the program terminates. In this case, locks left in place when the program ends will not be released automatically.