Command reference / file
RMVM
Remove Member
Removes one or more members from the specified physical or logical file. If the member is removed from a physical file, both the member and its data are deleted. 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.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- If a member of another file shares the data of the member being deleted, the dependent member must be removed first.
- You must have *OBJEXIST authority for the file that contains the member or members.
- The command is conditionally threadsafe. In multithreaded jobs it is not threadsafe for DDM files of type *SNA when SYSTEM(*RMT) or SYSTEM(*FILETYPE) is specified.
Parameters
FILE
Database file
Specifies the physical or logical file that contains the member or members to be removed. This is a required parameter.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the file; QGPL is used if no current library is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Database file
Database file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MBR
Member
Specifies the file member or members to be removed. This is a required parameter.
Suggested / special values:
*ALL
*ALL- All members are removed from the specified file.
Examples
RMVM FILE(JOBHIST1) MBR(JOBHIST1A)
Removes member JOBHIST1A from file JOBHIST1, using the library list to find the file and member. Other members of JOBHIST1 remain unchanged.
RMVM FILE(QGPL/JOBHISTL) MBR(SRC*)
Removes all members whose names start with SRC from file JOBHISTL in library QGPL.
Generated from os/cl/catalog/RMVM.json and os/cl/help/RMVM.json.