IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to delete only the current generation of a GDG?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Mon Dec 04, 2006 3:52 pm
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
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: 1208
Location: Bangalore,India

PostPosted: Tue Dec 19, 2006 12:06 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts How to delete a user's alias from the... JCL & VSAM 11
Search our Forums:

Back to Top