RELEASE Statement

Unlocks items that have been locked for update.

Syntax

RELEASE {{file-var,} item-id} {SETTING setting-var}

Syntax Elements

file-var is the name of the variable to which the name of the file was assigned via an OPEN statement.

If file-var is not specified, the internal default file-variable is used, that is, the file most recently opened without a file-variable.

item-id is the name of the locked item.

setting-var is the name of a variable that is set to a value corresponding to a file I/O error code by the SETTING clause if a network error occurs. The file I/O error codes are described in File I/O and IPC Error Codes.

If no error occurs, setting-var is set to 0.

Comments

If a file variable is not specified, the internal default file variable is used, which is the file most recently opened without a file variable.

If neither file-var nor item-id is specified, RELEASE unlocks all items locked by the program.

Examples

RELEASE

Unlocks all items that have been locked by the program.

RELEASE F1,"RECORD"

Unlocks the item RECORD in the file specified by F1.

Go to top button