850-KFIND-NLT-<Index>

Name

850-KFIND-NLT-<Index>

Description

850-KFIND-NLT-<Index> reads the record whose key field is greater than or equal to the values you set in the record retrieval variables (DB fields) corresponding to the index key fields, but returns only the keys from the index.

Using the API in a Program

850-KFIND-NLT-<Index> must be paired with a 860-KFIND-NEXT-<Index> .

Input Values

Field Description

<Index>

You must specify the index in the KFIND statement.

850-KFIND-NLT-<Index> does not need to point to an existing record (unlike the 840-FIND-<Index> routine). If you define a generic value for the record search, the routine returns a record and sets the <FileName>-FOUND value for any database record successfully read.

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 DB 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
<FileName>-SW The Find routines set the <FileName>-SW switch to indicate the outcome of the read.

<FileName>-NOTFOUND

<FileName>-FOUND

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

Programming Example

See 850-FIND-NLT-<Index>.