MRM(1) ZOAU Command Syntax MRM(1)
mrm: Remove partitioned dataset members.
mrm [-dfhv] <DATASET_PATTERN>[(<MEMBER_PATTERN>)] -d Print out debug messages. -f Force member deletion, use with caution! Note: wilcards will delete every matching member, whether or not it is being used. -h Display syntax help. -v Print out verbose command information.
The mrm utility removes partitioned dataset members that match MEMBER_PATTERN. If no member pattern is specified, or if a member pattern of * is specified, all members of the dataset will be removed. The partitioned dataset can be specified with wildcards, but only one partitioned dataset can match the pattern, otherwise an error is issued. IMPORTANT NOTE: Care should be taken with wildcards to avoid unintentionally deleting dataset members. Using the -f option will use DISP=SHR on the whole PDS directory, so extra caution is advised when using wildcards. Changes made after the member has been deleted may create it once again.
Remove all members in dataset IBMUSER.PROJ23.LOAD: mrm ibmuser.proj23.load Remove all members of IBMUSER.LOAD that start with TST and end with the character '1' followed by one additional character: mrm 'ibmuser.load(tst*1?)' Remove all members of IBMUSER.PROJ23.LOAD, assuming no other datasets also match the pattern IBMUSER.*23.LOAD: mrm 'ibmuser.*23.load(*)' Forcibly remove members that are in use: mrm -f 'ibmuser.proj23.load(*)'
0 mrm completed successfully. 1 The dataset specified by DATASET_PATTERN does not exist. non-zero Errors occurred. See error messages for details.