NET/MASTER Network Control Language (NCL) Programmer's Guide
The Structure of Mapped Data Object (MDO) Variables
Working With Mapping Services
10–20 106160 Tandem Computers Incorporated
The following examples refer to specific repeated elements:
&$EMS.MSGATTR.FLD{1} /* Refers to 1st FLD element */
&$INT.MSGATTR.FLD{2} /* Refers to 2nd FLD element */
&$LOG.MSGATTR.FLD{3} /* Refers to 3rd FLD element */
&$MSG.MSGATTR.FLD{4} /* Refers to 4th FLD element */
Note The {1} is not required for the first occurrence of a repeated element; this is the default. The following
two variable names both refer to the first repeated element:
&$MSG.MSGATTR.FLD
&$MSG.MSGATTR.FLD{1}
The following example refers to the repeated element whose value is determined by
the value of the simple variable, &INDEX, within the braces:
&$EMS.MSGATTR.FLD{&index}
If the value of &INDEX is 12, for example, then the preceding example refers to the
following repeated element:
&$EMS.MSGATTR.FLD{12}
You can use an assignment statement to create and assign values to fields in repeated
elements as the following examples show:
&$MSG.MSGATTR.FLD{1}.OFFSET = 8
&$MSG.MSGATTR.FLD{1}.LENGTH = 8
&$MSG.MSGATTR.FLD{1}.COLOR = "TURQUOISE"
&$MSG.MSGATTR.FLD{1}.HLITE = "BLINK"
&$MSG.MSGATTR.FLD{1}.INTENS = "HIGH"
When creating and assigning values to fields in repeated elements, you do not have to
use consecutive integer indexes. For example, you can assign values to fields in
&$MSG.MSGATTR.FLD{2} without first assigning values to fields in
&$MSG.MSGATTR.FLD{1}.