Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Data base file | Qualified object name | Required, Positional 1 |
Qualifier 1: Data base file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Generic name, name, *ALL | Required, Positional 2 |
Top |
Specifies the physical file or logical file that contains the member or members to be removed.
This is a required parameter.
Qualifier 1: Data base file
Qualifier 2: Library
Top |
Specifies the file member or members to be removed.
This is a required parameter.
Top |
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.
Top |
*ESCAPE Messages
Top |