CL Command Reference - CLRPFM
CL Command List > CLRPFM Reference
Description:
The Clear Physical File Member (CLRPFM) command removes all the data (including deleted records) from the specified member of a physical file. If *NO was specified for the Allocate storage (ALLOCATE) parameter when the file was created, the record count for the member is set to zero, and the member size is set to the minimum size possible. If *YES was specified for the ALLOCATE parameter when the file was created, the CLRPFM command resets the member size to the value used when the file was initially created is reset.
Restrictions:
. This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe for distributed files. This command is also not threadsafe and fails for Distributed Data Management (DDM) files of type *SNA.
Examples:
CLRPFM FILE(*CURLIB/INV) MBR(FEB)
This command clears the member named FEB in the physical file INV, found in the current library for the job *CURLIB. It is not cleared until all jobs currently using the member and all jobs using the access paths over the member are done with it.