Guardian Programmer's Guide

Table Of Contents
Communicating With Disk Files
Guardian Programmer’s Guide 421922-014
5 - 80
Accessing Partitioned Files
! Create the file:
ERROR := FILE_CREATELIST_(KEYFILE:ZSYS^VAL^LEN^FILENAME,
LENGTH,
ITEM^LIST,
NUMBER^ITEMS,
VALUES,
VALUES^LEN);
END;
Either of the above examples creates a file with four partitions on volumes $ADMIN,
$PART1, $PART2, and $PART3. The records are segregated by key value as shown
in Figure 5-8:
Accessing Partitioned Files
You access a partitioned file in exactly the same way you would a nonpartitioned file.
Open the file by simply opening the file name of the primary partition. The
FILE_OPEN_ procedure returns just one file number, which you use to access the file
as you would any other disk file.
Figure 5-8. Sample Partitioned File
VST032.VSD