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
 
How to retrieve and delete

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to retrieve and delete
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: 8620
Location: Back in jolly old England

PostPosted: Sun Jun 07, 2009 2:24 pm    Post subject:
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    Post subject: How to retrieve and delete
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Mon Jun 08, 2009 12:01 pm    Post subject: Reply to: How to retrieve and delete
Reply with quote

http://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: 8620
Location: Back in jolly old England

PostPosted: Mon Jun 08, 2009 7:44 pm    Post subject:
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    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
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Need to retrieve Julian_date Suganya87 DB2 4 Wed Aug 17, 2016 7:27 pm

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