850-FIND-NLT-<Index>
Name
850-FIND-NLT-<Index>
Description
850-FIND-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.
850-FIND-NLT-<Index> , with its ability to reposition within a cursor, is useful for recovery of batch jobs and continuation after a transaction ends in online programs where the end of the main transaction closes all open cursors.
Using the API in a Program
850-FIND-NLT-<Index> must precede a 860-FIND-NEXT-<Index> or 870-FIND-PREV-<Index> .
Input Values
Field | Description |
---|---|
<Index> |
You must specify the index in the FIND statement. 850-FIND-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. |
Record retrieval variables (also known as DB
fields)
|
You must populate the index key fields used to locate the record before using this call. You do not need to
fill all |
Return Values
Field | Description |
---|---|
<FileName>-SW | The Find routines set the <FileName>-SW switch to indicate the outcome of the read. |
<FileName>-FOUND |
Each routine sets the logical value <FileName>-NOTFOUND or <FileName>-FOUND based on the outcome of the read process. |
Programming Example
This routine precedes the routines: 860-FIND-NEXT-<Index> or 870-FIND-PREV-<Index> , as shown in the examples for 860-FIND-NEXT-<Index>, or 870-FIND-PREV-<Index>.