Command reference / save
CLRSAVF
Clear Save File
Removes all records from a save file and reduces the storage it occupies. A save file must be cleared before it can receive new save data again. If a save operation finds records already present, it sends an inquiry message unless the save command specifies CLEAR(*ALL). File overrides in effect for the job are ignored.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- Requires *OBJOPR and *OBJMGT authority on the save file and *READ authority on its library.
Parameters
FILE
Save file
Names the save file to clear, as a qualified name (save file and library). This parameter is required.
*LIBL- Searches every library in the thread's library list until the first match is found.
*CURLIB- Uses the thread's current library, or QGPL if no current library is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Save file
Save file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
Examples
CLRSAVF FILE(ONLINE)
Clears save file ONLINE, removing its records and shrinking it to the smallest possible size.
Generated from os/cl/catalog/CLRSAVF.json and os/cl/help/CLRSAVF.json.