Using Range Modification Routines
The modify range routines perform similarly to their predecessors, the 860-MODIFY-NLT-<Index> and 860-MODIFY-NEXT-<Index> calls. The modify range routines are better choices to use in many cases than 850-MODIFY-NLT-<Index> and 860-MODIFY-NEXT-<Index> , because the modify range routines have some added performance advantages.
850-MODIFY-BEGRNG-<Index> and 850-MODIFY-SUBRNG-<Index> are used for initial processing of data and 850-MODIFY-MIDRNG-<Index> and 850-MODIFY-MIDSUBRNG-<Index> are used for repositioning within the initial cursor. To continue processing the cursor, once repositioning is done, the 860-MODIFY-NXTRNG-<Index> is used.
The 850-MODIFY-SUBRNG-<Index> and 850-MODIFY-MIDSUBRNG-<Index> , with their ability to reposition within a cursor, are useful for:
-
Screen scrolling (page up and page down) within online programs
-
Recovery of batch jobs
-
Continuation after a transaction end in online programs where the end of the main transaction does a close of all open cursors
For more information on the differences between the find and modify range calls and the performance advantages you gain through the use of range calls, see Using Range Find Routines.