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

Enscribe File Structures and NCL
Working With Files
106160 Tandem Computers Incorporated 12–3
Table 12-2. FILE Verbs and Enscribe File Types Supported by NCL
Enscribe File Type
Structured Unstructured
FILE Verb Operation E K R Edit file Guardian. Process
FILE ADD Adds record Y Y N N Y
FILE CLOSE Closes file Y Y N Y Y
FILE DEL Deletes record N Y N N N
FILE GET Retrieves record Y Y N Y N
FILE OPEN Opens file Y Y N Y Y
FILE PUT Adds or updates record Y* Y N N Y
FILE PUTGET Writes/Reads N N N N Y
FILE SET Sets current file Y Y N Y Y
E Entry-sequenced file.
K Key-sequenced file.
R Relative file.
* Can only add a record to an entry-sequenced file; cannot update records.
Structured Enscribe Files Entry-sequenced and key-sequenced files are structured Enscribe files. Enscribe files
consist of records. Records consist of fields. Fields may contain data. Figure 12-1
shows a record in a structured (key-sequenced) Enscribe file.
Figure 12-1. Record in a Structured Key-Sequenced Enscribe File
CUST_CODE NAME ADDRESS PHONE AGE
One Record
Five Fields
025
Records in a structured file have keys. Each record in a structured file is uniquely
identified from other records in that file by the value of its primary key.