CL Command Reference - RMVM
CL Command List > RMVM Reference
Description:
The Remove Member (RMVM) command removes one or more members from the specified physical file or logical file. If the member is removed from a physical file, both the member and the member data are deleted from the system. If the member is removed from a logical file, the member and the access path to the data in the physical file member are deleted from the system.
Restrictions:
. If a member of another file is sharing the data of the member being deleted, the dependent member must be removed first.
. You must have object existence (*OBJEXIST) authority for the file that contains the member or members.
. This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe for Distributed Data Management (DDM) files of type *SNA, when SYSTEM(*RMT) or SYSTEM(*FILETYPE) is specified.
Examples:
Example 1: Removing a File Member
RMVM FILE(JOBHIST1) MBR(JOBHIST1A)
This command removes file member JOBHIST1A from file JOBHIST1. Library list *LIBL is used to find the file and member. If JOBHIST1 contains other members, they remain unchanged.
Example 2: Removing Members with Names that Start with SRC
RMVM FILE(QGPL/JOBHISTL) MBR(SRC*)
This command removes all file members with names that start with SRC from file JOBHISTL in library QGPL.