Working with save files
You can use the CL commands that are listed here with save files.
- The Create Save File (CRTSAVF) command creates a save file that can be used with save and restore commands to store data. The save file stores data that might otherwise be written to save media. You can use FTP to send a save file to another System i® user on the network.
- The Change Save File (CHGSAVF) command changes one or more of the attributes of a save file, such as the maximum number of records.
- The Override with Save File (OVRSAVF) command overrides or replaces certain attributes of a save file, or overrides any file with a save file.
- The Display File Description (DSPFD) command displays the attributes of the save file.
- The Clear Save File (CLRSAVF) command clears the contents of a save file.
- The Display Save File (DSPSAVF) command displays the save and restore information in a save file, or the contents of the save file.
- You can use the Save Object (SAVOBJ) or the Save Library (SAVLIB) command to 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.
- The Save Save File Data (SAVSAVFDTA) command 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.