# UNLOKR
> [HTML Version](unlokr.htm)
**UNLOKR #ch**
**Parameters**
_ch _is an integer identifying the file; established by the OPEN statement.
**Comments**
UNLOKR has no effect if [LOKSER](lokser_sp.htm.md) not enabled, or if the current record number is not locked. The record number to unlock is determined by the contents of the record-number variable specified in the OPEN statement. Records are locked by the READL statement, and if not unlocked by a subsequent WRITE, should be unlocked by UNLOKR. Closing the file also unlocks all locked records.
**See Also**
• [XREAD, XWRITE, XUNLOKR](xreadxwritexunlokr.htm.md)