Sharing existing access paths between logical files

 

When two or more logical files are based on the same physical files with the same key fields in the same order, they automatically share the same keyed sequence access path.

When access paths are shared, the amount of system activity required to maintain the access paths and the amount of auxiliary storage used by the files are reduced. So when a logical file with a keyed sequence access path is created, the system always tries to share an existing access path. For access path sharing to occur, an access path that satisfies the following conditions must exist on the system:

Logical files that contain concatenated or substring fields cannot share access paths with physical files. The owner of any access path is the logical file member that originally created the access path. For a shared access path, if the logical member owning the access path is deleted, the first member to share the access path becomes the new owner. The FRCACCPTH, MAINT, and RECOVER parameters on the Create Logical File (CRTLF) command need not match the same parameters on an existing access path for that access path to be shared. When an access path is shared by several logical file members, and the FRCACCPTH, MAINT, and RECOVER parameters are not identical, the system maintains the access path by the most restrictive value for each of the parameters specified by the sharing members. The following list illustrates how this occurs:

Access path sharing does not depend on sharing between members; therefore, it does not restrict the order in which members can be deleted.

The Display File Description (DSPFD) and Display Database Relations (DSPDBR) commands show access path sharing relationships.

 

Parent topic:

Describing access paths for logical files

 

Related concepts


Arranging duplicate keys