NET/MASTER Network Control Language (NCL) Programmer's Guide

User-Defined Maps
Standard and User-Defined Maps
11–32 106160 Tandem Computers Incorporated
The listing also shows that FUP output is produced. FUP can use this output to create
a key-sequenced Enscribe file called $DATA2.UDDL.EMPFILE to contain employee
information that is mapped by the EMPREC map. Using this file, an NCL process and
an external application can easily share access to the same employee data. The
following listing shows the FUP output:
< SCHEMA PRODUCED DATE - TIME :10/20/92 13:58:23
< SECTION EMPREC
< Record EMPREC created on 10/20/92 at 13:58
RESET
SET TYPE K
SET KEYLEN 4
SET REC 172
SET BLOCK 4096
SET IBLOCK 4096
SET EXT( 4, 32 )
SET MAXEXTENTS 100
CREATE $DATA2.UDDL.EMPFILE
The following FUP command uses the FUP output to create
$DATA2.UDDL.EMPFILE:
FUP /IN FUPSRC/
Step 3. Creating and Adding a Map Definition
The third step in creating a user-defined map is creating a map definition using the
data structures defined in the DDL data dictionary, and adding the map definition to
the map file. The MDMAINT utility program, which is supplied with NonStop
NET/MASTER MS, is used to perform these system management tasks. For further
information on the MDMAINT utility program, refer to the NonStop NET/MASTER MS
System Management Guide.
Assume NonStop NET/MASTER MS was installed with a process character of Z on
$DATA2.ZNNM on your Tandem system. The following TACL RUN command
invokes the MDMAINT program to create a map definition for the record EMPREC
and add it to the map file:
RUN $DATA2.ZNNM.MDMAINT /PRI 140, NAME $ZMDM/
$DATA2.ZNNMDATA.MAPFILE
ADD $DATA2.UDDL EMPREC R
After the user-defined map is added to the map file, an NCL process can use the map
to access data. For example, after the EMPREC map definition is added to the
NonStop NET/MASTER MS data dictionary, an NCL process can use the map to
access employee information.