Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Batch Delete all the generations of a GDG after PGM executed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Kentucky, USA

PostPosted: Tue Feb 27, 2007 2:40 am    Post subject: Batch Delete all the generations of a GDG after PGM executed
Reply with quote

Hi,

I would like to delete all the generations for a gdg base after the execution of the program.
Please can anyone let me know how to do it in batch. I would like to retain the base for the next run.
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: Tue Feb 27, 2007 4:23 am    Post subject:
Reply with quote

Hello,

Let's say you usually code your.dsn(+1) to create a new version and you code your.dsn(0) to read the most recent version. To delete all of the cataloged versions, you can use
Code:
//DD1  DD DSN=your.dsn,DISP=(OLD,DELETE,DELETE)


Do not specify the version. All cataloged versions will be uncataloged/deleted and the gdg base will still be there for the next use.
Back to top
View user's profile Send private message
prasadplease

New User


Joined: 02 Sep 2006
Posts: 31
Location: Mumbai

PostPosted: Wed Feb 28, 2007 11:58 am    Post subject:
Reply with quote

Use IEFBR14

//STEP001 EXEC PGM=IEFBR14
//DD1 DD DSN= gdg base name,
// DISP=OLD,DELETE)
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 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 DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us