Scrolling by Page
To scroll a list by pages, that is, scroll vertically depending on the page length, the SCROLL statement offers several options.
Scrolling to Specific Pages
To scroll to specific pages, use the TO option of the SCROLL statement:
Syntax
SCROLL LIST TO FIRST PAGE|LAST PAGE|PAGE pag [INDEX idx] [LINE lin].
Without the INDEX option, the statement scrolls the current list to the first page, last page, or the page numbered pag. If you specify the INDEX option, the system scrolls the list of list level idx. For more information on list levels, see Interactive Lists.
If you specify the LINE option, the system displays the page to which it scrolls starting from line lin of the actual list. It does not count the page header lines.
Scrolling by a Specific Number of Pages
To scroll a list by a specific number of pages, use the following options of the SCROLL statement:
Syntax
SCROLL LIST FORWARD|BACKWARD n PAGES [INDEX idx].If you do not specify the INDEX option, the statement scrolls forward or backward <n> pages. The INDEX option refers to a specified list level, as mentioned above.