Scrolling by Columns

To scroll a list horizontally by columns, the SCROLL statement offers several options. A column in this case means one character of the list line.

Scrolling to Specific Columns

To scroll to specific columns, use the TO COLUMN option of the SCROLL statement:

Syntax

SCROLL LIST TO COLUMN col [INDEX idx].

If you do not specify the INDEX option, the system displays the current list starting from column col . If you specify the INDEX option, the system scrolls the list of list level idx . For more information on list levels, see Interactive Lists .

Scrolling by a Specific Number of Columns

To scroll a list by a specific number of columns, use the following option of the SCROLL statement:

Syntax

SCROLL LIST LEFT|RIGHT BY n PLACES [INDEX idx].

If you do not specify the INDEX option, the statement scrolls forward or backward n columns. The INDEX option specifies a particular list level as described above.