Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL Syntax for IDCAMS usign DELETE MASK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
harimca
Warnings : 1

New User


Joined: 15 Jul 2006
Posts: 10

PostPosted: Fri Jul 30, 2010 8:49 pm    Post subject: JCL Syntax for IDCAMS usign DELETE MASK
Reply with quote

Hi
Can any one help me with some sample JCLS that i Can use for Deleting/Uncatloging Files usign DELETE MASK
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 30, 2010 9:05 pm    Post subject:
Reply with quote

The Redbook z/OS Version 1 Release 11 Implementation has these details:
Quote:
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.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 30, 2010 11:11 pm    Post subject:
Reply with quote

Click HERE for a utility posted to do exactly what you want.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Sat Jul 31, 2010 8:55 pm    Post subject:
Reply with quote

I know I am going to regret asking this but here goes anyway.
Quote:
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
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Jul 31, 2010 9:58 pm    Post subject:
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us