Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8201
Location: Dubuque, Iowa, 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: 8620
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: 260

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: 8620
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 VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us