Joined: 06 Jun 2008 Posts: 8339 Location: Dubuque, Iowa, USA
The Redbook z/OS Version 1 Release 11 Implementation has these details:
7.5 IDCAMS delete mask
In prior releases the DELETE command can delete a generic entry name, but only one qualifier
can be replaced by the wildcard asterisk (*). The command DELETE A.B.* allows the deletion
of three entry levels only. The deletion does not perform on data set name A.B.C.D
z/OS V1R11 improvements
In DFSMSdfp in z/OS V1R11, the IDCAMS DELETE command is enhanced to include a new
function called DELETE MASK. The DELETE MASK command allows only one data set entry name
to be specified. If multiple entry names are specified, the DELETE request will fail with error
messages. If more than 100 data set names are filtered from the wildcard notation, AMS only
deletes the first 100 data sets identified by the filtering process.
If you do not specify the MASK keyword on the DELETE command, or if you do not explicitly
specify NOMASK, the previous wildcardConsider the following changes with z/OS V1R11:
It allows users to specify the data set name selection criteria desired with a mask entry
name and a keyword MASK.
A mask entry name (also called a filter key) can have two consecutive asterisks (**) or one
or more percentage signs (%).
The two consecutive asterisks(**) represent zero (0) or more characters and it is not
limited to the number of levels. For example, A.B.** means all data set names with two or
more levels with A and B as their first and second qualifiers, respectively.
The percentage sign (%) replaces any character in that same relative position. For
example, ABCDE matches the mask entry A%%DE, but not A%DE.
The MASK keyword turns the new feature on; for example:
DELETE A.B.** MASK
DELETE A.BC.M%%K MASK
The NOMASK keyword turns the new function off. The default is NOMASK.
I know I am going to regret asking this but here goes anyway.
Click HERE for a utility posted to do exactly what you want.
Why would anyone want to install a utility to do something that is a standard feature? My assumption here is that if the poster invested enough time to read up on the new functions he has invested enough effort to check he is running with an operating system that supports the function
Joined: 14 Mar 2007 Posts: 8683 Location: Back in jolly old England
S/He only said delete mask without specification of the z/OS level.
I took it that the delete mask was meant as pre z/OS 11 as the OP did not mention the release level. But hey, if the OP can't be arsed to mention which release they are on, then one does what one can to be helpfull