Defining Where the User Can Scroll on a Page
You can restrict the area of a page that can be scrolled horizontally by the user with the scrollbars or from within the program. You can also combine the following two techniques.
Excluding Lines from Horizontal Scrolling
To exclude a line (for example, a header or comment line) from horizontal scrolling, define the line feed for that line as follows:
Syntax
NEW-LINE NO-SCROLLING.
The line following the statement cannot be scrolled horizontally. However, it can be scrolled vertically.
To undo the above statement, use:
Syntax
NEW-LINE SCROLLING.
This statement only makes sense if no line was output after NEW-LINE NO-SCROLLING .
Left Boundary for Horizontal Scrolling
To determine the left boundary of the horizontally scrollable area, use:
Syntax
SET LEFT SCROLL-BOUNDARY [COLUMN col].
If you do not use the COLUMN option, the left boundary of the scrollable area of the current page is set to the current output position; if you use the COLUMN option, the left boundary is set to position col . Now, only the part to the right of this area can be scrolled horizontally.