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 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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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