NET/MASTER Network Control Language (NCL) Programmer's Guide
User-Defined Maps
Standard and User-Defined Maps
106160 Tandem Computers Incorporated 11–39
4. Observe the results, as shown in the following two screens:
Screen 1 of 2
(11:58) --------------------- OPERATOR CONTROL SERVICES ----------------------
UDBCTL OPEN=$DATA2.UDDL.EMPFILE ID=EMPFILE
NNM0300 OPEN REQUEST COMPLETE
START ZEX1105N
8 Read, write, and delete access
0 Record added
PUT KEY operand value is |77 |
PUT &SYS.FILE.KEY value is |77 |
0 Record retrieved
GET KEY operand value is |77 |
GET &SYS.FILE.KEY value is |77 |
Group EMPADDR is |99 Spring St Mycity Mys12345|
Field CITY is |Mycity |
Field STATE is |Mys|
Field STREET is |99 Spring St |
Field ZIP is |12345|
Group EMPBDAY is |15May59|
Field DAY is |15|
Field MONTH is |May|
Field YEAR is |59|
Field EMPCODE is |77 |
Group EMPDEP is |95 .|
MSG QUEUED ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Screen 1 shows that the UDBCTL OPEN command successfully opens
$DATA2.UDDL.EMPFILE for access by NonStop NET/MASTER MS. Return
codes of 8, 0, and 0 indicate that the FILE OPEN, FILE PUT, and FILE GET verbs
successfully perform their respective operations. The record key for the single
record that is added (FILE PUT) and retrieved (FILE GET) from the file is “77 “;
that is, 77 followed by two spaces (not nulls).
Screen 1 displays the value and length (using vertical bars (|)) of the data in the
groups and the fields in the record. It shows that data that exceeds the length
defined in the DDL source schema file is truncated to the correct length. For
example, Mystate (seven bytes) is truncated to Mys (three bytes). It shows that
data that is less than the length defined in the DDL source schema file is padded
with spaces to the correct length. For example, Mycity (six bytes) is padded to
“Mycity “ (14 bytes).
Screen 1 shows the difference between groups and fields. A group can contain
other groups or fields, but a field is the most fundamental unit in a mapped data
structure. It demonstrates two ways to access and display data in groups and
fields. Referring to a group name refers to the data in all the fields that belong to
the group: for example, referring to EMPBDAY obtains the value 15May59 (the
fields are DAY, MONTH, and YEAR). Referring to a field name refers only to the
data in the specific field. For example, referring to DAY obtains the value 15.