UNLOCK Statement Details Syntax UNLOCK [#] filenumber [,{record| [start] TO end}] The UNLOCK statement is used only after a LOCK statement. See the for more information. For binary mode files, the arguments record, start, and end represent the number of a byte relative to the beginning of the file. The first byte in a file is byte 1. For random access files, these arguments are the number of a record relative to the beginning of the file. The first record is record 1.