Save database files

Use the SAVOBJ command to save individual database files. You can use the FILEMBR (file member) parameter to save:

Here is what the server does when you save a database file:

Table 1. Saving database files
Type of File What is saved
Physical file, TYPE(*DATA), keyed access path1 Description, data, access path
Physical file, TYPE(*DATA), access path not keyed Description, data
Physical file, TYPE(*SRC), keyed access path Description, data
Logical file2 Description
1
The following types of access paths are included as keyed access paths: keyed access paths, primary key constraints, unique constraints, referential constraints.
2
You can save the access path for a logical file by saving the associated physical files using the SAVLIB, SAVOBJ, or SAVCHGOBJ command and specify the ACCPTH parameter..

The description for a file may include the following:

Special considerations apply when you restore a file that has trigger programs or constraints defined. You can find additional information about how the server restores files with triggers and files with referential constraints in the Backup and Recovery book.Link
outside Information Center

Related concepts
Save journaled objects
Related information
SAVOBJ command