NET/MASTER Network Control Language (NCL) Programmer's Guide
Creating a UDB
Working With Files
12–8 106160 Tandem Computers Incorporated
Creating a UDB Before NCL can work with a single UDB or UDB pair, you must create the single file
or two files, respectively. This subsection discusses how.
Creating a Single UDB You create a single UDB in the same way that you can create any other file on a
Tandem system:
By calling the Guardian file system CREATE procedure from a user-written
program
By using the TACL CREATE command
By using the File Utility Program (FUP) CREATE command
By using a Tandem text editor such as TEDIT or EDIT
By using the Guardian file system PROCESS_CREATE_ or NEWPROCESS
procedure to create a new Guardian process
By using the TACL RUN command to create a new Guardian process
Refer to the Guardian Procedure Calls Reference Manual, Volume 1 and the Enscribe
Programmer's Guide for details on how to use the CREATE procedure. TACL
commands are presented in the Tandem Advanced Control Language (TACL) Reference
Manual. FUP commands are presented in the File Utility Program (FUP) Reference
Manual. You should refer to the suite of manuals that describe TEDIT for how to
create edit files. The Guardian Programmer's Guide describes how to create Guardian
processes.
Creating the Files in a UDB
Pair
You create the two key-sequenced files in a UDB pair in the same way that you create
other key-sequenced files on a Tandem system:
By calling the Guardian file system CREATE procedure from a user-written
program
By using the File Utility Program (FUP) CREATE command
The following values in each key-sequenced file must be identical:
Record length
Key length and offset of primary keys
Key length and offset of alternate keys (if present)
Additionally, the value of the primary key offset must be zero (0).
Refer to the Guardian Procedure Calls Reference Manual, Volume 1 and the Enscribe
Programmer's Guide for details on how to use the CREATE procedure. FUP commands
are presented in the File Utility Program (FUP) Reference Manual.