NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.TERM.ROWS
System Variables
5–100 106126 Tandem Computers Incorporated
&SYS.TERM.ROWS The &SYS.TERM.ROWS system variable contains the number of rows available to the
physical terminal, regardless of the current processing window size.
&SYS.TERM.ROWS
Considerations
It is good practice to write procedures that accommodate the largest screen size
but that automatically adjust for a smaller screen. However, formatting output to
suit the terminal size currently being used offers performance advantages. Screen
refreshing of large quantities of data takes time, and some of the data might be lost
if the terminal has a limited number of rows. In such cases, it is more efficient to
use the value in &SYS.TERM.ROWS to write procedures to format the data
appropriate to the terminal.
If &SYS.TERM.ROWS is tested from a procedure running under one of the
background environments, a value of 0 (zero) is returned.
See also &SYS.WINDOWS.ROWS, which contains the number of rows available in
the current window.
Example
The following example displays a warning message if the variable &CNT (which
contains the number of rows required for a screen display) is greater than
&SYS.TERM.ROWS:
TERMROWS: PROCEDURE
IF &CNT > &SYS.TERM.ROWS THEN
SAY "GOT NO MORE"
END TERMROWS