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
 
Having any limit for IDCAMS "DELETE" Command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Having any limit for IDCAMS "DELETE" Command
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 17, 2011 5:06 pm    Post subject:
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    Post subject: Reply to: Having any limit for IDCAMS "DELETE" Com
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 17, 2011 6:23 pm    Post subject: Re: Reply to: Having any limit for IDCAMS "DELETE"
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

Site Director


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

PostPosted: Thu Nov 17, 2011 8:32 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 444
Location: London

PostPosted: Thu Nov 24, 2011 10:35 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm

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