870-FIND-PRVRNG-<Index>

Name

870-FIND-PRVRNG-<Index>

Description

When you need to process a range of data without interruption, use 870-FIND-PRVRNG-<Index> .

Using the API in a Program

You must precede 870-FIND-PRVRNG-<Index> with 850-FIND-BEGRNG-<Index> , 850-FIND-SUBRNG-<Index> , 850-FIND-MIDRNG-<Index> , or 850-FIND-MIDSUBRNG-<Index> .

Input Values

Field Description

<Index>

You must specify the index in the FIND statement.

Record retrieval variables (also known as DB fields) Define the beginning and ending values of the last key by moving the appropriate values to the record retrieval fields named DB- <KeyFieldName> and DBRNG- <KeyFieldName>.
WS-DB-BEG-RNG

Move the symbolic constant <IndexName>-<IndexFieldName> to the field WS-DB-BEG-RNG in order to tell the interface which key is the last significant one defining the range. The symbolic constant is numerically equivalent to the position of the named field in the Index.

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.