NET/MASTER Network Control Language (NCL) Reference Manual
Variable Lists Beginning With VARS
Verb Syntax and Variable Access Methods
106126 Tandem Computers Incorporated 11–13
You use the CONTROL RNGLIM and CONTROL NORNGLIM verbs to set the
maximum number of variables that can be in a range. The range is the difference
between the end value and the start value plus one.
CONTROL RNGLIM sets the maximum number of variables that can be generated
in a range by any simple range specification to 64. For example, if you specify
CONTROL RNGLIM, you can specify variables within a range of 1 through 64, or
60 through 123, and so on.
CONTROL NORNGLIM increases the number of variables that can be generated
to 32,000. For example, you can specify the range 5000 through 36999.
Note The preceding options of the CONTROL verb apply only when using the ASSIGN verb.
No Range Specified
The following
ranged-variable-specification
does not specify a first or
second range:
&[
variable
] *
In this case, NCL generates or targets variable names suffixed by 1 through 64. Here
are some examples:
What You Type Comment
FILE PUT VARS=&A* Generates &A1 through &A64.
MSGREAD VARS=&TOTAL* Generates &TOTAL1 through &TOTAL64.
PARSE VARS=&* DATA My message Generates &1 through &64.
If you omit
variable
, NCL generates or targets variables with null names. It
generates or targets variables such as &1, &2, and &3.
Only First Range Specified
The following
ranged-variable-specification
specifies only the first range:
&[
variable
] * (
start1
,
end1
)
In this case, NCL generates or targets variable names that satisfy the first range. Here
are some examples:
What You Type Comment
DROP VARS &*(10,15) Deletes &10 through &15.
LOGREAD VARS=(&A*,&B*(1,10)) Generates &A1 through &A64 and &B1 through
&B10.
PAUSE VARS=&*(5,10) Generates &5 through &10.