11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.12 DELETE command enhancement with z/<strong>OS</strong> V1R11<br />

IDCAMS DELETE command is enhanced to include a<br />

new function called DELETE MASK<br />

Allows users to specify the data set name selection<br />

criteria desired with a mask-entry-name and a keyword<br />

“MASK”<br />

A mask-entry-name (also called as filter key) can have<br />

two consecutive asterisks (**) or one or more (%) signs<br />

Two consecutive asterisks represent zero or more<br />

characters<br />

% sign is the replacement for any character in that same<br />

relative position<br />

MASK keyword is the keyword to turn on the new feature<br />

Figure 6-24 DELETE command enhancement with z/<strong>OS</strong> V1R11<br />

DELETE command<br />

The DELETE command deletes catalogs, VSAM data sets, non-VSAM data sets, and objects.<br />

With z/<strong>OS</strong> V1R11, the IDCAMS DELETE command is enhanced to include a new function<br />

called DELETE MASK. It allows users to specify the data set name selection criteria desired<br />

with a mask-entry-name and a keyword “MASK”. A mask-entry-name (also called as filter<br />

key) can have two consecutive asterisks (**) or one or more percentage signs (%)<br />

The two consecutive asterisks represent zero or more characters, and it is not limited to the<br />

number <strong>of</strong> levels. For example, A.B.** means all data set names with two or more levels with<br />

A and B as their first and second qualifiers, respectively. The percentage sign is the<br />

replacement for any character in that same relative position. For example, ABCDE matches<br />

the mask-entry ‘A%%DE’, but not ‘A%DE’.<br />

The MASK keyword is the keyword to turn on the new feature; for example:<br />

DELETE A.B.** MASK<br />

DELETE A.BC.M%%K MASK<br />

NOMASK is the keyword to turn the new function <strong>of</strong>f. The default is NOMASK.<br />

If more than one entry is to be deleted, the list <strong>of</strong> entrynames must be enclosed in<br />

parentheses. The maximum number <strong>of</strong> entrynames that can be deleted is 100. If the MASK<br />

keyword is specified, then only one entryname can be specified. This entryname is also<br />

known as the mask filter key.<br />

Chapter 6. Catalogs 351

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!