How to 'empty' all the versions in a GDG?

JES2/3, JCL, utilities.
Post Reply
Nidhi Veloo
New Member
Posts: 3
Joined: Tue Jul 29, 2014 4:33 pm

How to 'empty' all the versions in a GDG?

Post by Nidhi Veloo »

Hi all,

How could I clear the data from all the versions of a GDG? By clear the data I mean make them empty.

please help.
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: How to 'empty' all the versions in a GDG?

Post by Anuj Dhawan »

Hi Nidhi,

I'm not sure if there is an easy way out (which works for all the generations together) to do this apart from working with individual generations and use SORT:

Code: Select all

OPTION COPY 
OMIT COND=ALL
If you clarify more, we might be able to answer better.
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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to 'empty' all the versions in a GDG?

Post by Robert Sample »

1. A GDG has generations usually -- there can only be one version per generation and that is usually V00. To make it V01, the V00 will be deleted.

2. What do you mean by "empty"? Do you mean to keep the generations but remove all the data from the data set, or just remove all the generations from the GDG?
Post Reply

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

Register

Sign in

Return to “JCL - Job Control Language.”