View previous topic :: View next topic
|
Author |
Message |
VENKATA999 Warnings : 2 New User
Joined: 05 Jan 2006 Posts: 44
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
VENKATA999 Warnings : 2 New User
Joined: 05 Jan 2006 Posts: 44
|
|
|
|
Dfdss is utility? Can you please provide me jcl for running it. Please. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 582 Location: London
|
|
|
|
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 |
|
|
|