NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
106126 Tandem Computers Incorporated 3–11
Examples
The examples following, in which the operand OPT=VALUE is the NCL default, show
the use of Format 1 of the ASSIGN verb.
The following example clears user details:
ASSIGN VARS=(&NAME1,&USER,&PHONE)
The following example clears &1 through &64—the default range is 1 through 64:
ASSIGN ARGS
The following example sets the contents of the variables &1 through &5 to the data
string “we all get this”:
ASSIGN ARGS RANGE(1,5) DATA=WE ALL GET THIS
The following example clears panel fields:
ASSIGN VARS=&PNLFLD* RANGE=(1,&MAXROWS)
The following example sets display lines:
ASSIGN VARS=&DISPLN*(1,&MAXROWS) FROM,
VARS=&DATA*(&TOP,&BOTTOM)
The following example creates a mapped MDO:
ASSIGN MDO=&USERMDO. MAP=$SEC
The following example deletes an MDO. The stem variable &DEV. is the name of a
mapped data object:
ASSIGN MDO=&DEV.
Another way to delete this MDO is to use the DROP verb:
DROP VARS=&DEV.
The following example creates a copy of an MDO:
ASSIGN MDO=&LOCAL_MDO FROM MDO=&$INT.
The following example shows the use of the GENERIC keyword:
ASSIGN VARS=&SAVE* GENERIC FROM VARS=&FILE*
The preceding example creates a backup copy of some file record variables with a
prefix of SAVE.