USE-COLUMN

Syntax

USE-COLUMN {column_number_int_lit|_var|_col}

Description

Sets the current column.

The column must have been defined previously with the COLUMNS command.

To stop printing within columns, use a column number of 0 (zero). Printing returns to normal; however, the columns remain defined for subsequent NEXT-COLUMN or USE-COLUMN commands.

Parameters

Parameter Description

{column_number_int_lit|_var|_col}

Specifies the number of the defined column (not the location on the page). For example, if five columns are defined, the column_number_int_lit|_var|_col can be 1 to 5.

Example

The following example shows the USE-COLUMN command:

use-column  3     ! Print total in 3rd column.
print  #total  ()  999,999
use-column  0     ! End of column printing.