NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.NCL.VMAX
System Variables
106126 Tandem Computers Incorporated 5–63
&SYS.NCL.VERSION The &SYS.NCL.VERSION system variable contains the current version number of
NCL. It can be used to assist in structuring NCL procedures running in environments
using mixed releases of NonStop NET/MASTER MS software. The release number is
returned in the format V
x.y
, in which
x.y
is the current NCL version number.
&SYS.NCL.VERSION
Example
The following example tests the &SYS.NCL.VERSION system variable and issues a
message if the current NCL version is less than V3.0:
VERSION: PROCEDURE
IF &SYS.NCL.VERSION < V3.0 THEN
WRITE DATA="System not at latest level"
END VERSION
&SYS.NCL.VMAX The &SYS.NCL.VMAX system variable contains the maximum length of an NCL
variable.
&SYS.NCL.VMAX
Consideration
Currently, the maximum number of characters that an NCL variable can contain is
32000. This value is returned in &SYS.NCL.VMAX.
Example
In the following example, procedure VMAX issues a message giving the number of
unused characters left in the variable &A:
VMAX: PROCEDURE
&SPACE_LEFT = &SYS.NCL.VMAX - LENGTH(&A)
SAY "THERE IS " &SPACE_LEFT " IN &A"
END VMAX