IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL Syntax for IDCAMS usign DELETE MASK


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 30, 2010 9:05 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Jul 30, 2010 11:11 pm
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: 262

PostPosted: Sat Jul 31, 2010 8:55 pm
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: 8797
Location: Welsh Wales

PostPosted: Sat Jul 31, 2010 9:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top