850-MODIFY-MIDSUBRNG-<Index>

Name

850-MODIFY-MIDSUBRNG-<Index>

Description

850-MODIFY-MIDSUBRNG-<Index> performs similarly to 850-MODIFY-MIDRNG-<Index> , but it allows for more precision in defining the range, because it lets you specify beginning and ending values on the last key field defining the range.

Using the API in a Program

850-MODIFY-MIDSUBRNG-<Index> can be used in conjunction with 850-MODIFY-SUBRNG-<Index> and 860-MODIFY-NXTRNG-<Index> .

The database routines perform an equal condition on all DB <Index> fields up to the subrange field designated in the WS-DB-SUB-RNG . It performs a "where greater-than and less-than" condition on this index field.

Input Values

Field Description

<Index>

You must specify the database index name that you want to create a record in.
Record retrieval variables (also known as DB fields)

Fill in the DB fields that define the point to position at in the mid-subrange, and also initialize any other DB fields that do not define the mid-subrange.

Define the beginning and ending values of the last key by moving the appropriate values to the record retrieval fields named DBSRNG-<KeyFieldName> (starting value) and DBRNG-<KeyFieldName> (ending value). This defines the range itself.

WS-DB-SUB-RNG

Move the symbolic constant <IndexName>-<IndexFieldName> to the field WS-DB-SUB-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 Modify routines set the <FileName>-SW switch to indicate the outcome of the read. This routine sets the logical value <FileName>-NOTFOUND or <FileName>-FOUND based on the outcome of the read process.