NET/MASTER Network Control Language (NCL) Reference Manual
Multiple Variable Assignment Using ASSIGN
Verb Syntax and Variable Access Methods
106126 Tandem Computers Incorporated 11–23
Using GENERIC
The GENERIC keyword deletes all target variables that begin with the specified prefix.
It creates a new set of target variables from the source variables. It assigns the new set
of target variables the values of the source variables. This effectively updates target
variables that previously matched source variables. Here is an example:
ASSIGN VARS=&A* GENERIC FROM VARS=&B*
Target Variables Source Variables Result of GENERIC Comment
&A1 = NN &B1 = 000 &A1 = 000 &A1 updated
&A2 = CC ++ *+ &A2 deleted
** &BB = 999 &AB = 999 &AB created
** &BC = 888 &AC = 888 &AC created
&AD = LL &BD = 777 &AD = 777 &AD updated
&AE = PP ++ *+ &AE deleted
&AF = GG ++ *+ &AF deleted
** &BZ = 555 &AZ = 555 &AZ created
** indicates a nonexistent target variable.
++ indicates a nonexistent source variable.
*+ indicates that the result is defined in the comment.
Using OVERLAY
The OVERLAY keyword does not affect target variables whose suffixes do not match
any of the source suffixes. It creates a variable if there are no target variables with a
suffix that matches that of a source variable. It updates all target variables in which
the target and source suffixes match. Here is an example:
ASSIGN VARS=&A* OVERLAY FROM VARS=&B*
Target Variables Source Variables Result of OVERLAY Comment
&A1 = NN &B1 = 000 &A1 = 000 &A1 updated
&A2 = CC ++ &A2 = CC &A2 not affected
** &BB = 999 &AB = 999 &AB created
** &BC = 888 &AC = 888 &AC created
&AD = LL &BD = 777 &AD = 777 &AD updated
&AE = PP ++ &AE = PP &AE not affected
&AF = GG ++ &AF = GG &AF not affected
** &BZ = 555 &AZ = 555 &AZ created
** indicates a nonexistent target variable.
++ indicates a nonexistent source variable.