Reporting output allows the end user to "move around", page up, page down, sideways, ... all standard stuff. If for whatever reason the developer needs to interfere, here's how:
Scrolling
No user actions have to be handled for scrolling in reports, it's all automatic. But there is a statement purely for scrolling: SCROLL
. An overview of self-explanatory options:
SCROLL LIST TO FIRST PAGE. SCROLL LIST TO LAST PAGE. SCROLL LIST TO PAGE pag. SCROLL LIST TO COLUMN col. SCROLL LIST FORWARD. SCROLL LIST BACKWARD. SCROLL LIST LEFT. SCROLL LIST RIGHT.
Setting a scroll boundary
Effectively freezing the report contents up to a column or row.
Columns and lines can be fixed or frozen in a report. For fixating columns use the statement SET LEFT SCROLL-BOUNDARY
; the scroll boundary is fixed at the cursor position of that moment. To fix a specified column number, use the addition COLUMN col
. Keep in mind that the setting is done after the last WRITE
statement.
A report's lines can be fixed as well. Lines that are WRIT
ten between the statements NEW-LINE NO-SCROLLING
and NEW-LINE SCROLLING
will keep their position when scrolling horizontally. If lines have to be fixed at the top of the screen, select an excessively high page height to make sure the header doesn't scroll by at a page break.