9.8 UNLOCK Statement

The UNLOCK statement frees a record in an indexed, relative, or sequential file that was locked on a specified logical unit by a previous READ. It performs no other I/O operation. The UNLOCK statement takes one of the following forms:

UNLOCK ([UNIT=]u [,ERR=s] [,IOSTAT=ios])
UNLOCK u
u
Is the number of a logical unit.
s
Is the label of the executable statement that receives control if an error occurs.
ios
Is an integer scalar memory reference that is defined as a positive integer if an error occurs and zero if no error occurs.

If no record is locked, the operation has no effect.


Previous Page Next Page Table of Contents