NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.WINDOW.COLS
System Variables
106126 Tandem Computers Incorporated 5–107
&SYS.WINDOW.COLS The &SYS.WINDOW.COLS system variable contains the number of columns currently
available to this processing window.
NonStop NET/MASTER MS supports split screen operation, with a maximum of two
operational windows. When using split screen operation, the number of display
columns available to the procedure may be less than the physical width for the screen.
&SYS.WINDOW.COLS indicates the number of display columns available for the
window it is tested in.
&SYS.WINDOW.COLS
Considerations
The dimensions of the physical terminal (regardless of the window dimensions)
can be determined from the &SYS.TERM.COLS and &SYS.TERM.ROWS system
variables.
It is good practice to write procedures that accommodate the largest window size
but that automatically adjust if used in a smaller window. This variable can be
tested to determine the number of display lines available to a processing window.
When subtracting fixed panel overhead from &SYS.WINDOW.COLS, the NCL
procedure must allow for the system variable having a value as low as 1. This is
the case when operating in split-screen mode for which only a single line is
allocated to the window.
If referred to in a background environment, &SYS.WINDOW.COLS is 0 (zero).
See also &SYS.TERM.COLS, &SYS.TERM.ROWS, and &SYS.WINDOW.ROWS.
The dimensions of the physical terminal (regardless of the window dimensions)
can be determined from &SYS.TERM.COLS and &SYS.TERM.ROWS.
&SYS.WINDOW.COLS contains the number of columns currently available.
Example
In the following example, the &SYS.WINDOW.COLS system variable is tested to see
whether it is large enough for a screen display, as required by the value in the
&MINWIDTH variable:
IF &MINWIDTH > &SYS.WINDOW.COLS THEN
SAY "NOT ENOUGH COLUMNS"