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

Parameters

FILE Database file

Specifies the physical or logical file that contains the member or members to be removed. This is a required parameter.

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

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

MBR Member

Specifies the file member or members to be removed. This is a required parameter.

Type
*GENERIC
Required
Yes
Length
10
Case
Uppercase

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.

IBM command documentation

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