CL Command Reference - CLRSAVF
CL Command List > CLRSAVF Reference
Description:
The Clear Save File (CLRSAVF) command clears the contents of a save file. This command clears all existing records from the save file and reduces the amount of storage used by this file.
A save file must be cleared before it can be used again to receive data from a save command or to receive another save file. If the user attempts to write new save data into a save file that already contains records, an inquiry message is sent to the work station for an interactive job, or to the system operator for a batch job, unless a save command is used and CLEAR(*ALL) is specified.
Note: This command ignores all file overrides that are currently in effect for the job.
Restrictions:
. You must have operational (*OBJOPR) and object management (*OBJMGT) authorities for the save file and read (*READ) authority for the specified library.
Examples:
CLRSAVF FILE(ONLINE)
This command clears the contents of save file ONLINE. Any existing records in the file are removed, and the file size is reduced to the minimum size possible.