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

Having any limit for IDCAMS "DELETE" Command


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
VENKATA999
Warnings : 2

New User


Joined: 05 Jan 2006
Posts: 44

PostPosted: Thu Nov 17, 2011 5:02 pm
Reply with quote

As part of datasets cleanup, we are in the process of deleting huge number of datasets.

I am planning to have all the datasets in one ps number with delete command and give as input to IDCAMS step as below.

//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD DSN=INPUTDATASET,DISP=SHR
//

Here INPUTDATASET is a ps file having all the datasets with delete command.

ex: DELETE BXMD.DEXTZ.V.MSA.SORTDA10.VEN
DELETE BXMD.DEXTZ.V.MSA.SORTDA11.VEN

I am aware that it works for number like 5000 around. Is there any number limit for IDCAMS "DELETE" Command?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 17, 2011 5:06 pm
Reply with quote

What happened when you tried it for yourself.

Hardly a difficult thing to do is it. Of course you might have considered using Dfdss instead of IDCAMS as this has great wildcard and filtering capabilities and also offers the option of performing a backup before deletion.
Back to top
View user's profile Send private message
VENKATA999
Warnings : 2

New User


Joined: 05 Jan 2006
Posts: 44

PostPosted: Thu Nov 17, 2011 6:21 pm
Reply with quote

Dfdss is utility? Can you please provide me jcl for running it. Please.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 17, 2011 6:23 pm
Reply with quote

VENKATA999 wrote:
Dfdss is utility? Can you please provide me jcl for running it. Please.

Why, doesn't google work for you ?

Please supply, who is getting paid to do your work, you or me ???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 17, 2011 8:32 pm
Reply with quote

Hello,

Quote:
Dfdss is utility?
Yes - it is also known as adrdssu.

There are several topics in the forum that have adrdssu/dfdss processes.

Suggest you speak with your storage management people before just deleting thousands of datasets. . .
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Thu Nov 24, 2011 10:35 pm
Reply with quote

Suspect IDCAMS has a limit of 4096 statements in a single execution, and not just deletes. But if you're at later releases of ZOS (maybe 1.11 or 1.12 up) you can use masks in the dataset names which means you could reduce the number of statements required.

DFDSS DUMP with DELETE to a DUMMY DD is a good alternative but it won't handle datasets migrated by DFHSM.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top