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

Enscribe File Structures and NCL
Working With Files
106160 Tandem Computers Incorporated 12–5
The primary key for records in key-sequenced files is a specified data field within a
record.
NCL can read from and write to key-sequenced files. Figure 12-4 shows the structure
of a record in a key-sequenced file. Figure 12-5 shows some records in a
key-sequenced file.
Figure 12-4. Record Structure in a Key-Sequenced File
CUST_CODE NAME ADDRESS PHONE AGE
Primary Key
028
Figure 12-5. Records in a Key-Sequenced File
414-5999SMITH STADAMS, J.P. 30
PHONEADDRESSNAME AGE
453-8596JONES STADAMS, K.L. 12
831-5043HILDA RDHUNT, L.Z. 45
777-2034EAST AVEWATSON, E.R.
45
613-4533LAKESIDE DRRIVER, O.M. 99
029
001
CUST_CODE
002
003
004
005
45
Edit Files An edit file is an unstructured Enscribe file: essentially a byte array on disk that starts
at byte address 0 and continues sequentially upward through whatever byte address is
identified by the end-of-file (EOF). Tandem editors impose their own private structure
on the data stored in an edit file. Edit files have a file code of 101. Users can create an
edit file by using a Tandem editor, such as PS Text Edit (TEDIT) or EDIT.
NCL uses the line number of a record in an edit file as the record key.
NCL regards edit files as entry-sequenced files. NCL can read from edit files but NCL
cannot write to edit files.