NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
3–6 106126 Tandem Computers Incorporated
ASSIGN The ASSIGN verb manipulates multiple variables in a single operation.
There are four different syntax layouts for the ASSIGN verb:
Format 1 ASSIGN OPT=VALUE
Format 2 ASSIGN OPT={ MAPNAME | MAPELEMENTS |
MAPFIELDS | MDOELEMENTS |
MDOFIELDS | MDOCOUNTS }
Format 3 ASSIGN OPT={ SETERR | RESETERR |
SETMOD | RESETMOD
SETOUT | RESETOUT }
Format 4 ASSIGN OPT=MODFLD
A discussion of each of these formats follows.
Format 1 This format allows you to set data values in a list or range of variables from another
list or range, or from a data constant. This format is especially useful for manipulating
the contents of mapped data objects (MDOs).
ASSIGN [ OPT=VALUE ]
{ ARGS [ RANGE=(
start
,
end
) ] |
MDO=
variable-name
[ MAP=
map-name
] |
VARS={
output-vars-list
|
variable
* }
[ RANGE=(
start
,
end
) | BYNAME | GENERIC |
MERGE | OVERLAY ] }
[ DATA=
rest-of-statement
|
FROM
{ ARGS [ RANGE=(
start
,
end
) ] |
MDO=
variable-name
|
VARS={
input-vars-list
|
variable
* }
[ RANGE=(
start
,
end
) | GENERIC ] } ]
OPT=VALUE
specifies that you want to change the contents of some supplied target variables.
The following operands are available:
ARGS
specifies a range of generated variables. See “Frequently Occurring Operands,” at
the beginning of this section, for more information.