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
 

 

How to delete only the current generation of a GDG?

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

New User


Joined: 25 Aug 2005
Posts: 5
Location: chennai

PostPosted: Mon Dec 04, 2006 3:21 pm    Post subject: How to delete only the current generation of a GDG?
Reply with quote

Hi,
Can anybody tell me how to delete only the current generation of a GDG through batch job.

Thanks
Mars
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Dec 04, 2006 3:52 pm    Post subject:
Reply with quote

Hi Mars,

Code:
//STEP1  EXEC   PGM=IEFBR14                                   
//DTAL   DD  DSN=TBH2.DECE001.DATA(0),DISP=(MOD,DELETE,DELETE),
//           SPACE=(TRK,(10,25),RLSE),UNIT=DISK,               
//           DCB=(LRECL=145,RECFM=FB)                         


here TBH2.DECE001.DATA is ur gdg name
Back to top
View user's profile Send private message
sivaraj.r

New User


Joined: 11 Dec 2006
Posts: 1
Location: bangalore

PostPosted: Tue Dec 19, 2006 11:52 am    Post subject:
Reply with quote

Hi,

If i am wrong , pls correct me , for deleting only the current generation of a GDG through batch job we should use IDCAMS and not IEFBR14.


-Siva
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Dec 19, 2006 12:06 pm    Post subject:
Reply with quote

Hi Siva,

As u might be knowing that IEFBR14 is a dummy utility so we just change the Disposition parameter to delete the current generation by keeping it MOD,DELETE,DELETE.

Hope it is clear now.
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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


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