Previous Topic: ERASE (LRF)Next Topic: FIND/OBTAIN CALC/DUPLICATE


FIND/OBTAIN

The FIND statement locates a record occurrence in the database; the OBTAIN statement locates a record and moves the data associated with the record to the record buffers. Because the FIND and OBTAIN command statements have identical formats, they are discussed together.

Six FIND/OBTAIN Formats

The six formats of the FIND/OBTAIN statement are as follows:

Each format of the FIND/OBTAIN statement is discussed separately in the following subsections.

SHARED and EXCLUSIVE Locks

You can place locks on located record occurrences by using the KEEP clause of a FIND/OBTAIN statement. The KEEP clause sets a shared or exclusive lock:

More information:

KEEP CURRENT