NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
3–12 106126 Tandem Computers Incorporated
For each example that follows, the assumed initial values for the relevant variables are:
&A1=xxx, &AB=yyy, &D2=zzz, and &DB=ABC.
The following example performs the assignment &AB=&DB. The previous value of
&AB was yyy; it becomes ABC. Other variables are unaffected:
ASSIGN VARS=&A* BYNAME FROM VARS=&D*
In the following example, the value of &AB remains unchanged (yyy), because it
already exists. The nonexistent variable &A2 is newly created with the value zzz (the
value of &D2). Other variables are unaffected:
ASSIGN VARS=&A* MERGE FROM VARS=&D*
The following example performs the assignments &AB=&DB and &A2=&D2. The
previous value of &AB was yyy; it becomes ABC. The nonexistent variable &A2 is
newly created with the value zzz (the value of &D2). Other variables are unaffected.
OVERLAY is a combination of BYNAME and MERGE:
ASSIGN VARS=&A* OVERLAY FROM VARS=&D*
The following example performs the assignments &A1=&D2 and &A2=&DB. The
previous value of &A1 was xxx; it becomes zzz. The nonexistent variable &A2 is
newly created with the value ABC (the value of &DB). Other variables are unaffected:
ASSIGN VARS=&A* FROM VARS=&D* GENERIC