NEXTREC primary command

When viewing segmented data in SNGL display mode, the NEXTREC primary command moves to the first segment of the next "visible" physical record (see Note below) or, if you specify a number, moves forward that number of physical records.
Note: In this context, "visible" means any selected, not suppressed, or not excluded record, unless those types of records are being shown in the view because of edit settings or entered SHOW commands.
Note: If you specify a number of records greater than the remaining number of physical records, the **** End of data **** line is displayed.

Syntax

Read syntax diagramSkip visual syntax diagram
               .-1-----------.   
>>---NEXTREC---+-------------+---------------------------------><
               +-num_records-+   
               '-MAX---------'   

num_records
Scrolls forward the specified number of physical records. The default is 1 physical record.
MAX
Scrolls to first segment of the last physical record.

Availability

Related tasks and examples