Previous Topic: @IF ExampleNext Topic: @KEEP Syntax


@KEEP—places an explicit shared or exclusive lock on a record

The @KEEP statement places an explicit shared or exclusive lock on a record that is current of run unit, record, set, or area. Explicit record locks are used to maintain record locks that would otherwise be released following a change in currency:

Locks placed on records by the @KEEP function are maintained for the duration of the recovery unit or until explicitly released by means of the @COMMIT verb.

Currency

Currency on run unit, record, set, or area must be established before execution of the @KEEP statement.

Currency is not updated after execution of the @KEEP statement.