NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
3–10 106126 Tandem Computers Incorporated
GENERIC
specifies that the VARS=
variable
* operand acts as a modifier that you
can use to select a range of currently existing variables with alphanumeric
suffixes. NCL then sorts these variables in ascending order of suffix
(numeric suffixes sort lower than alphabetic suffixes). This list becomes
the input list for this format of the ASSIGN verb. See the final example at
the end of the definition of the ASSIGN verb, in Format 1.
Considerations
For all functions, the &SYS.VARCNT system variable is set to indicate the number
of target variables updated.
The use of OPT=VALUE with overlapping ranges gives results as if all assignments
are performed in parallel. This provides the capability of shifting data values up
and down variable ranges. For example:
ASSIGN VARS=&A* RANGE=(2,5) FROM VARS=&A* RANGE=(1,4)
gives the same results as:
&A5 = &A4, &A4 = &A3, &A3 = &A2, &A2 = &A1.
An asterisk may be used in VARS to access subvectors in an MDO. For example:
VARS=&mdo.vec{*}.subvec
would find the subvectors:
... vec{1}
... vec{2}
... vec{3}
The asterisk must always be enclosed in braces {*}. The closing brace must be
followed by a period (.).
NCL sets &SYS.RETCODE to 16, if you refer to an MDO variable that is incorrectly
constructed for the map that is being used.
See the CONTROL verb (RNGLIM and NORNGLIM operands).
See also examples of the variable lists beginning with VARS and the
accompanying RANGE operands in Section 11, “Verb Syntax and Variable Access
Methods.”
For more information on the ASSIGN verb, refer to the NonStop NET/MASTER
NCL Programmer's Guide.