Working with save files
You can use the CL commands that are listed here with save files.
Create Save File (CRTSAVF) Create a save file that can be used with save and restore commands to store data. The save file stores data that would otherwise be written to save media. A save file can also be used as a container to send objects to another System i™ user on the systems network architecture distribution services (SNADS) network.
Change Save File (CHGSAVF) Changes one or more of the attributes of a save file, such as the maximum number of records. Override with Save File (OVRSAVF) Overrides or replaces certain attributes of a save file, or overrides any file with a save file. Display File Description (DSPFD) Displays the attributes of the save file. Clear Save File (CLRSAVF) Clears the contents of a save file. Display Save File (DSPSAVF) Displays the save and restore information in a save file, or the contents of the save file. Save Object (SAVOBJ)
Save Library (SAVLIB)Save the description of the save file. You can also save the data to tape, optical media, or another save file in a different library. Save Save File Data (SAVSAVFDTA) Writes the contents of a save file to either tape or optical media. Use the following API to work with save files:
The List Save File (QSRLSAVF) API returns the contents of the save file in a user space. The contents of the save file is returned at a user-selected level of library information, object information, member information, or spooled files. The QSRLSAVF API returns the same information that is shown on a DSPSAVF command. In addition, when you specify the SAVF0200 format, the system includes the following:
- The serial number of the system on which the save operation was performed.
- The ASP from which the object was saved.
The QSYSINC library provides structures for the QSRLSAVF API formats in C, COBOL, and RPG.
Parent topic:
Save files