delete all gdg versions without deleting base.
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
delete all gdg versions without deleting base.
Hi,
how can we delete all the GDG versions of a GDGbase with out really deleting the base. Can you please tell me?
how can we delete all the GDG versions of a GDGbase with out really deleting the base. Can you please tell me?
-
- Global Moderator
- Posts: 826
- Joined: Wed Sep 11, 2013 3:57 pm
Re: delete all gdg versions without deleting base.
open the IDCAMS manual and look Yourself
https://www.ibm.com/support/knowledgece ... 00/toc.htm
https://www.ibm.com/support/knowledgece ... 00/toc.htm
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: delete all gdg versions without deleting base.
Please don't use all CAPS. It's considered as shouting.DELETE ALL GDG VERSIONS WITHOUT DELETING BASE.
To your question - there are two way I can think of at the moment. One with IDCAMS, Enrico has already directed you to. Second is using IEFBR14 - sample Job is shown below:
Code: Select all
//JOBName
//STEP01 EXEC PGM=IEFBR14
//GDGBASE DD DSN=GDG.BASE.TO.DELETE,
// DISP=(OLD,DELETE,DELETE)
//*
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: delete all gdg versions without deleting base.
Actually thse will delete generations - not necessarily versions of a generation. Which does the user want?
Regards
Nic
Nic
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: delete all gdg versions without deleting base.
Since a GDG usually creates GENERATIONS with a VERSION of 00, but you can manually create GENERATIONS with a VERSION that is not zero, it is not all clear what you are asking. If you mixed up the terms, you need to go back and study -- for several hours at least -- the differences between GENERATIONS and VERSIONS for a GDG.
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
Re: delete all gdg versions without deleting base.
I did not get you? I needed to delete all the version for a GDG base.
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: delete all gdg versions without deleting base.
A GDG has BOTH generations and versions; you are not making it clear whether you are wanting to delete all generations of the GDG or if you have a non-zero version of a generation that you want to delete.I did not get you? I needed to delete all the version for a GDG base.
As long as you have confused your terminology, nobody on this -- or any -- forum can provide you any more help. Why don't you go back to the beginning, describe the data you have (with examples) and tell us what you want to do with what you have?
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: delete all gdg versions without deleting base.
This should be of interest: viewtopic.php?f=63&t=407Ashish Mathew wrote: ↑Tue Jan 09, 2018 3:32 pmI did not get you? I needed to delete all the version for a GDG base.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
Re: delete all gdg versions without deleting base.
So, generation is the correct word when we are referring to a gdg?
Re: delete all gdg versions without deleting base.
What was not clear? The first sentence clearly give you the information that you are querying.
I suggest that you start reading: google this: "z/OS Basic Skills"
I suggest that you start reading: google this: "z/OS Basic Skills"
Regards
Nic
Nic
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: delete all gdg versions without deleting base.
In the vast majority of cases, yes. There are some sites that create V01 (or V02 or ...) -- that is, different versions of a single generation -- so there are cases when referring to version is valid. These cases are very rare -- I think I've dealt with 2 or 3 in 40+ years of mainframe processing.So, generation is the correct word when we are referring to a gdg?
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
Re: delete all gdg versions without deleting base.
Thanks. I was talking about generation not versions.
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: delete all gdg versions without deleting base.
Thanks for the confirmation - hope you now understand the difference.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Registered Member
- Posts: 50
- Joined: Thu Jun 27, 2013 6:17 pm
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute