View previous topic :: View next topic
|
Author |
Message |
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
HLQ :
Code: |
XX.BPSXXX.CAPTU.JD%%%.LD%%%%%%.ID%% |
i want delete the datasets which are created 45 days before and need to display datasets names which are deleted |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DFdss |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
thanks alot expat..
Code: |
//STEP1 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=A
//DASD1 DD DSN=NULLFILE,DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA
//SYSIN DD *
DUMP FORCECP(0) OUTDD(DASD1) OPT(3) -
DATASET(INCLUDE(FX.BPSXXX.CXXTU.JD%%%.LD%%%%%%.ID%%) -
BY(CREDT LE *,-45) -
WAIT(20,90) SHR
/* |
using the above jcl i could able to retreive the datasets which are created 45 days before.
but not getting any idea how to delete these datasets (note : most of these datasets are migrated)
please help me how to acheive this |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Click HERE to see a REXX tool that will deal with DASD, TAPE and MIGRATED datasets to be deleted. |
|
Back to top |
|
|
|