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

How to retrieve and delete


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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Sun Jun 07, 2009 11:51 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sun Jun 07, 2009 2:24 pm
Reply with quote

DFdss
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Mon Jun 08, 2009 11:53 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 08, 2009 12:01 pm
Reply with quote

www.ibmmainframes.com/viewtopic.php?t=29913&highlight=adrdssu
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 08, 2009 7:44 pm
Reply with quote

Click HERE to see a REXX tool that will deal with DASD, TAPE and MIGRATED datasets to be deleted.
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top