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
 
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 batch cobol/db2 paragraph fall thru a... alois eisshofer COBOL Programming 5 Wed Mar 14, 2018 12:21 am
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm

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