What is Save File? Save file is one of the data storage media besides using tape or optical media. The process of saving an object using a save file means saving the object to the internal media of the AS400 system. The save file object on AS400 was File for the object type with SAVF as the attribute. The maximum limit of data or objects stored by the save file is approximately 2 TB.
Create Save File Object
Through the command line, type CRTSAVF (Create Save File) then press F4 = Prompt. Enter the desired file name and the library from the save file will be created then press Enter. The message File <file_name> created in library <lib_name> appeared.
Save object to Save File media
Through the command line, type the SAVOBJ command then press F4 = Prompt. On the save object page, open all parameters by pressing F9 = All parameters. Here are the parameters that I usually use to save object using save file, then press Enter.
- Object and Library – objects to be backed up, type + to back up more than 1 object.
- Device – the media that will be used for backing up, * SAVF.
- Object types – types of objects to be backed up.
- Save File and Library – location of the save file that has been created.
- Save Active – *LIB, *SYNCLIB and *SYSDFN if the backed up object is being used by another job (related article: Differences between LIB and SYNCLIB).
- Output – * PRINT to find out whether or not it works (QPSAVOBJ spool file).
Note: If the object size was big, highly recommended run SAVOBJ to batch.
Display Save File
Through the command line, type DSPSAVF <lib_name>/<savf_name> then press Enter.
Press F16=Display Header
Delete the contents of the Save File
Through the command line, type CLRSAVF <lib_name>/<savf_name> then press Enter. The message Save file <savf_name> in library <lib_name> cleared appeared.