8
Sharing Files and Locking Records
This chapter includes the following information about sharing files and protecting
records for sequential, relative, and indexed files:
Controlling access to files and records (Section 8.1)
Choosing X/Open standard or Compaq standard file sharing and record
locking (Section 8.2)
Ensuring successful file sharing (Section 8.3)
Using record locking to control access to records (Section 8.4)

8.1 Controlling Access to Files and Records

In a data manipulation environment where many users and programs access the
same data, file control must be applied to protect files from nonprivileged users,
to permit the desired degree of file sharing, and to preserve data integrity in the
files. For example, in Figure 8–1 many users and programs want to access data
found in FILE-A.
Figure 81 Multiple Access to a File
Access
Stream 3
Access
Stream 2
Access
Stream 1
PROGA
User 3User 2
PROGBPROGA
Location 3Location 2
ZK6323GE
Location 1
User 1
FILEA
Sharing Files and Locking Records 81