NET/MASTER Network Control Language (NCL) Programmer's Guide
Opening a UDB or UDB Pair for Access by NCL
Working With Files
106160 Tandem Computers Incorporated 12–35
Figure 12-11. Delimited UDB Record Structure
Field 2 'FF'X
Field 4 'FF'X
Field 1 'FF'X
'FF'X
RECORD KEY
'FF'X
Field 3 'FF'X
Field 5 'FF'X
Record 1
Field 2 'FF'X
'FF'X
Field 1 'FF'X
Field 4 'FF'X
RECORD KEY
'FF'X
Field 3 'FF'X
Field 5 'FF'X
Record 2
035
Null Null
Null Null
Both entry-sequenced and key-sequenced files can contain delimited records. It is not
meaningful, however, to open an edit file as a delimited UDB since NCL has no
control over the structure of the data—NCL can only read records from an edit file.
Figure 12-12 shows four records in an entry-sequenced file where the data is delimited.
The primary key of each record is the record address. Figure 12-13 shows four records
in a key-sequenced file where the data is delimited. The primary key of each record is
the customer code, the first field of each record.
How to read records from a delimited UDB and write records to a delimited UDB is
discussed in more detail later in this section.
Figure 12-12. Records in a Delimited Entry-Sequenced File
ADAMS, J.P. 'FF'X EISENHOWER AV 'FF'X 408 414-5999 'FF'X
JOHNSON, A.B. 'FF'X RED RD 'FF'X 929 43-4345 'FF'X
JONES, P. 'FF'X FIRST ST 'FF'X
BOND, J. 'FF'X ANDERSON DR 'FF'X 408 43-1239 'FF'X
55 'FF'X
15 'FF'X
30 'FF'X
036
'FF'X
'FF'X