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 the previous GDG version in IDCAMS.

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

New User


Joined: 30 Mar 2006
Posts: 11

PostPosted: Wed Feb 14, 2007 8:33 pm    Post subject: How to delete the previous GDG version in IDCAMS.
Reply with quote

Dear All,

Lets say i have a GDG file as below
RAJ.ABC.DEF.CC100
RAJ.ABC.DEF.CC100.G1823V00
RAJ.ABC.DEF.CC100.G1824V00
RAJ.ABC.DEF.CC100.G1825V00
RAJ.ABC.DEF.CC100.G1826V00
RAJ.ABC.DEF.CC100.G1827V00

Always i have to delete the last previous version in my IDCAMS step without giving version number.

Like RAJ.ABC.DEF.CC100(-1).

Is it possible using IDCAMS, If yes, Please let me know the syntax.

Thanks and Regards,
M.Rajesh
Back to top
View user's profile Send private message

dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Thu Feb 15, 2007 12:19 am    Post subject: Re: How to delete the previous GDG version in IDCAMS.
Reply with quote

Is there any specific reason for you to do this with the help of IDCAMS?
Or, it can be any other utility also?

You can do this with the help of executing IEFBR14 utility and including your GDG version(-1) file as a DD entry with the disposition of (OLD,DELETE,DELETE).

Dinesh.
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 Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm

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