E@DBKFNDGE

Name

The E@DBKFNDGE call has the following format:

DN@<Logical>(E@DBKFNDGE)

where <Logical> identifies the database file and index to use to perform the E@DBFINDGE call.

Description

E@DBKFNDGE reads the record whose key field is greater than or equal to the values you set in the record retrieval variables (D@ fields) corresponding to the index key fields, but returns only the keys from the index.

Using the API in a Program

E@DBKFNDGE must be paired with a E@DBKFNDNXT.

Input Values

Field Description
<Logical>

<Logical> identifies the database file and index to use to perform the E@DBFINDEQ call.

E@ does not need to point to an existing record (unlike the E@DBFNDEQ routine). If you define a generic value for the record search, the routine may return a record and sets D<prefix>@NOTFOUND accordingly.

Index key fields

You must populate the index key fields used to locate the record before using this call.

You do not need to fill all D@ fields with actual values, because the routine does not need to point to an existing record. Instead, fill those fields that are not required as delimiters with zeros or spaces, depending on whether the fields are numeric or alphanumeric fields. If you need to know whether the record exactly matches the key fields you passed, you must check to see if the record matches the generic values you set.

Return Values

Field Description
D<prefix>@NOTFOUND

Each routine sets the logical value <FileName>-NOTFOUND or <FileName>-FOUND based on the outcome of the read process.

The Find routines set D<prefix>@NOTFOUND to FALSE if a record is found, TRUE if a record is not found, or E@KEY@FOUND if the keys are found.

Programming Example

For an example of programming, see E@DBFINDGE