Releases a record lock set by the F-UREAD command.
F-FREE {file-buffer {key}}
F-F {file-buffer {key}}
file-buffer specifies a file buffer (1 to 9) assigned by an F-OPEN command.
key is the key of the record to be unlocked. Can be a literal (not enclosed in quotes), or a direct or indirect reference to a buffer or select register.
If file-buffer is not specified, all record locks set by the jCL program on the current port, within the current context level will be released.
If key is not specified, any outstanding locks for the current file will be released.
Record locks are also released by F-WRITE or F-DELETE commands, and at the end of the jCL program. Use the LIST-LOCKS command to see which records are currently locked.
F-FREE
Unlocks all records previously locked by this jCL program.
F-FREE 1
Unlocks the record specified by the key in field zero of file buffer 1.
F-F 1 Key
Unlocks the record "Key" in the file associated with file buffer 1.
JCL