NET/MASTER Network Control Language (NCL) Programmer's Guide
User-Defined Maps
Standard and User-Defined Maps
11–38 106160 Tandem Computers Incorporated
This NCL procedure shows how to refer to data structures in the MDO variable
mapped by EMPREC and how to assign data to the groups and fields in the MDO
variable.
A full name hierarchy is required to refer to a field. Assigning data to a field
explicitly assigns data only to that field. The following example assigns the value
Smith to the field &ADDMDO.EMPNAME.LASTNAME:
&ADDMDO.EMPNAME.LASTNAME = Smith
A full name hierarchy is required to refer to a group. Assigning data to a group
implicitly assigns data to the fields that are subordinate to the group. The
following example assigns the value 15May59 to the group
&ADDMDO.EMPBDAY:
&ADDMDO.EMPBDAY = 15May59
This assignment statement has the same result as the following assignment
statements:
&ADDMDO.EMPBDAY.DAY = 15
&ADDMDO.EMPBDAY.MONTH = May
&ADDMDO.EMPBDAY.YEAR = 59
An integer index is required to refer to a specific repeated group or field. The
following example assigns values to &ADDMDO.EMPPAY, which is a repeated
group:
&ADDMDO.EMPPAY{1}.DAY = 31
&ADDMDO.EMPPAY{1}.MONTH = Jan
&ADDMDO.EMPPAY{1}.YEAR = 99
&ADDMDO.EMPPAY{3} = 31Mar99
The number sign is omitted to refer to the unenumerated form of an enumerated
field. The following example assigns the value education to
&ADDMDO.EMPDEP.DEPTYPE:
&ADDMDO.EMPDEP.DEPTYPE = education
2. Execute the following command from the OCS command input line:
UDBCTL OPEN=$DATA2.UDDL.EMPFILE ID=EMPFILE
This command opens $DATA2.UDDL.EMPFILE for use by NonStop
NET/MASTER MS.
Note You should use the SHOW UDB command to ensure that EMPFILE is not being used as a UDB identifier
at your installation. If it is, use a different UDB identifier in the UDBCTL OPEN command.
3. Execute the following command from the OCS command input line:
START ZEX1105N