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
 

 

Deleting of all generations in GDG except base

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

New User


Joined: 23 May 2005
Posts: 16

PostPosted: Wed Aug 31, 2005 4:25 pm    Post subject: Deleting of all generations in GDG except base
Reply with quote

Hi all,
I need your kind considerations of answering my question. Plz help me ..


How to delete all the generations ( not known abt the highest versions of existing) of GDG without affecting the base?

With thanks and regards,
MaggieBMS
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Aug 31, 2005 5:31 pm    Post subject: Re: Deleting of all generations in GDG except base
Reply with quote

Hi,

I guess for your requirement you have to do it manually.

Go to option 3.4

Enter the GDG Base number

Use command delete and Hdelete (for migrated dataset) to delete the required the GDGs.

Regards
Rupesh
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Aug 31, 2005 5:45 pm    Post subject: Re: Deleting of all generations in GDG except base
Reply with quote

Any allocation of the base entry as DISP=MOD,DELETE,DELETE will delete all of the generations. The base entry will not be deleted until an IDCAMS DELETE process is run.

For example, this job step will delete all current generations, leaving only the base entry:

Code:

//*                                                 
//STEPXXXX EXEC PGM=IEFBR14                         
//DELGDGS  DD   DSN=&SYSUID..MY.GDG,               
//         DISP=(MOD,DELETE,DELETE),UNIT=SYSDA,     
//         SPACE=(CYL,(1,0))                       
//*                                                 
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Aug 31, 2005 6:14 pm    Post subject: Re: Deleting of all generations in GDG except base
Reply with quote

Hi,

Try this code

Code:
//STEP01 EXEC PGM=IEFBR14                   
//SYSUT1 DD DSN=GDG Base Name, 
//          DISP=(OLD,DELETE,DELETE)


Hope it will help you.

Regards
Rupesh
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Aug 31, 2005 10:18 pm    Post subject:
Reply with quote

Hi for your question the PURGE command along with delete will do ....

//sysin dd *

deleter gdg (......) PURGE/FORCE
/*

correct me if am wrong ....

kumar.p.v
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 Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm
No new posts Savings by Deleting Unused datasets swathykrishnan All Other Mainframe Topics 13 Fri Jul 10, 2015 6:26 pm
No new posts Issue in transfering control when Del... thesumitk CICS 10 Wed Apr 01, 2015 6:45 pm
No new posts base+displacement addressing scheme jackzhang75 PL/I & Assembler 3 Tue Mar 03, 2015 2:07 am


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