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

Parameters

FILE Save file

Names the save file to clear, as a qualified name (save file and library). This parameter is required.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

Examples

CLRSAVF FILE(ONLINE)

Clears save file ONLINE, removing its records and shrinking it to the smallest possible size.

IBM command documentation

Generated from os/cl/catalog/CLRSAVF.json and os/cl/help/CLRSAVF.json.