DRM(1) ZOAU Command Syntax DRM(1)
drm: remove one or more VSAM cluster or non-VSAM datasets
drm [-hvfd] [<dataset pattern>]+ -h print out syntax -f if the dataset does not exist, do not issue a message -v issue a message for each deleted dataset -d print debug messages
drm removes VSAM clusters or non-VSAM datasets that match the dataset pattern specified. drm invokes drmraw. See drmraw(1) for details on additional error messages. IMPORTANT NOTE: Care should be taken with wildcards to ensure you do not accidentally delete datasets you did not intend to delete. You have been warned.
Delete all datasets owned by TEST01 with a low level qualifier of TXT drm 'test01.*.txt' Delete all datasets owned with a high level qualifier pattern of TEST?? followed by the qualifier PROJ23. drm 'test??.proj23.*' Delete the dataset IBMUSER.MY.JCL. Do not issue a message if the dataset does not exist. drm -f ibmuser.my.jcl. Delete the datasets that match IBMUSER.PROJ22.* and the datasets that match IBMUSER.PROJ23.* drm 'ibmuser.proj22.*' 'ibmuser.proj23.*'
0 drm completed without error. 1 dataset specified by dataset pattern does not exist. non-zero Errors occurred. See error messages for details.