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
 
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: 1191
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: 1191
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 PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
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 Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm

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