EXAMPLE - Saving files in a network

The following figure shows a physical file, FILEA in the LIB1 library. Logical file FILEB in LIB1 and logical file FILEC in LIB2 have access paths over physical file FILEA in LIB1.

Figure 1. Saving Access Paths
Saving access paths

The following table shows which parts of this file network different commands save:

Table 1. Saving a File Network
Command What is saved
SAVLIB LIB(LIB1)
       ACCPTH(*YES)
FILEA: description, data, keyed access path
FILEB: description, access path
FILEC: access path
SAVOBJ OBJ(FILEA) LIB(LIB1)
       ACCPTH(*YES)
FILEA: description, data, keyed access path
FILEB: access path
FILEC: access path
SAVLIB LIB(LIB2)
       ACCPTH(*YES)
FILEC: description