NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
106126 Tandem Computers Incorporated 3–15
Examples
The examples following show the use of Format 2 of the ASSIGN verb.
The following example obtains the map of an MDO:
ASSIGN OPT=MAPNAME VARS=&MDOMAP FROM MDO=&SOURCE.
The following example obtains the names of defined elements in an MDO:
ASSIGN OPT=MAPELEMENTS VARS=&ME* FROM MDO=&$INT.MSGATTR
The following example determines the fields present in an MDO:
ASSIGN OPT=MDOFIELDS VARS=&MF* FROM MDO=&$INT.MSGATTR.DISPLAY
The following example returns the number of occurrences of an element:
ASSIGN OPT=MDOCOUNTS VARS=&COUNT FROM MDO=&MDO.MSGATTR.FLD