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 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
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm


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