z/OS 1.11 hit the streets today, so we can now talk in public about the
new IDCAMS DELETE MASK keyword. If we can trust the doc, then the
results are a little "surprising"...

For a test case, I allocated the following data sets:
SYS1.DELMASK.TEST.T4
SYS1.DELMASK.TEST.T5
SYS1.DELMASK.TEST.T6.A
SYS1.DELMASK.TEST.T7.B
SYS1.DELMASK.TEST1
SYS1.DELMASK.TEST2
SYS1.DELMASK.TEST3
SYS1.DELMASK.TEST8
SYS1.DELMASK.TEST9

Results of commands:

  DELETE   SYS1.DELMASK.TEST%
IDC2901I MASKING ENTRY NAME REQUIRES A KEYWORD MASK TO BE SPECIFIED
no surprise there.

  DELETE   SYS1.DELMASK.TEST%   MASK
IDC2902I NO ENTRIES FOUND FOR MASK SYS1.DELMASK.TEST%
should have deleted the last 5 data sets in the list

  DELETE   SYS1.DELMASK.*
IDC0550I ENTRY (A) SYS1.DELMASK.TEST1 DELETED
IDC0550I ENTRY (A) SYS1.DELMASK.TEST2 DELETED
IDC0550I ENTRY (A) SYS1.DELMASK.TEST3 DELETED
IDC0550I ENTRY (A) SYS1.DELMASK.TEST8 DELETED
IDC0550I ENTRY (A) SYS1.DELMASK.TEST9 DELETED
as expected

  DELETE   SYS1.DELMASK.*.*
IDC3203I ITEM 'SYS1.DELMASK.*.*' DOES NOT ADHERE TO RESTRICTIONS
As pointed out months ago this is in the list of how not to code an
IDCAMS command.

  DELETE   SYS1.DELMASK.**      MASK
IDC2902I NO ENTRIES FOUND FOR MASK SYS1.DELMASK.**
No kidding!

After all these commands are run, the following data sets are left standing:
SYS1.DELMASK.TEST.T4
SYS1.DELMASK.TEST.T5
SYS1.DELMASK.TEST.T6.A
SYS1.DELMASK.TEST.T7.B
Based on z/OS 1.11 DFSMS AMS for Catalogs, any remaining data sets in
the test case should have been deleted by the last DELETE command.

--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507, gord.tom...@actionsoftware.com

Peter X. DeFabritus wrote:
From the z/OS 1.11 pre-announcement:

"The IDCAMS DELETE command can be used to delete multiple entries by using a wildcard character as part of the entry name. In z/OS V1.11, IDCAMS will be designed to provide more-selective criteria on the DELETE command. A new MASK keyword will be intended to allow you to specify data set name selection criteria using a mask entry-name, or key filter, with the new keyword."

Something to look forward to.

On Thu, 9 Apr 2009 14:28:27 -0500, Nemo <plumbersar...@gmail.com> wrote:

On Thu, 9 Apr 2009 15:09:48 -0400, Jerry Fuchs wrote:

Ok still a stupid question. Now I get

 DELETE APY.TEMP.INVS.*.*.*.*
IDC3203I ITEM 'APY.TEMP.INVS.*.*.*.' DOES NOT ADHERE TO
RESTRICTIONS
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE
IS 12

Nemo
Sent by: IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>
04/09/2009 02:18 PM

To: IBM-MAIN@bama.ua.edu

Subject Re: IDCAMS DELETE stupid question


On Thu, 9 Apr 2009 14:05:36 -0400, Jerry Fuchs wrote:

Yes, there are multiple qualifiers. IE

APY.TEMP.INVS.S07340.I1543119.V000.ASN

How should the delete be coded?

It didn't like

DELETE APY.TEMP.INVS.**

The delete, in your case, should be coded

 APY.TEMP.INVS.*.*.*.*

...just like it says in the IDCAMS publication under the heading "How to
code access methods services commands" (which is itself under the heading
"About this document").

Oops, *snicker*!  See what you get for depending on someone else to read
the book for you?  I quoted the "unacceptable ways" paragraph by mistake.
(Now I suppose you won't be putting any money into my PayPal account.  Oh,
boo-hoo.)

You cannot be so lazy as to drop that many qualifiers in an IDCAMS DELETE
command.  You can drop almost any one (1) but not more than that.

You could (successfully) use: DELETE APY.TEMP.INVS.S07340.*.V000.ASN
Or you could use: DELETE APY.TEMP.INVS.*.I1543119.V000.ASN

But you cannot use IDCAMS DELETE to skip more than one level.

You might need to use a different utility, like DFDSS as one possible
suggestion.  (Of course you might have to read that manual.)

--


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to