| Author |
Message |
Lord.of.Wind
New User
Joined: 17 Nov 2005 Posts: 34
|
|
|
|
Hi,
I want to delete some GDG units created in the past 12 months, how can I write the codes?
For example, today is 2008-4-28, so the following GDG units created in
2007-04
2007-05
2007-06
2007-07
2007-08
2007-09
2007-10
2007-11
2007-12
2008-01
2008-02
2008-03
will be deleted.
Many thanks!
James |
|
| Back to top |
|
 |
References
|
Posted: Mon Apr 28, 2008 9:15 am Post subject: Re: How to delete GDG units for specific creation month? |
 |
|
|
 |
Moved: Mon Apr 28, 2008 9:54 am by superk From JCL to SMS & VSAM |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6098 Location: 221 B Baker St
|
|
|
|
Hello,
How sure are you that there was only 1 new generation created each month?
How many generations are to be kept by the gdg definition (LIMIT)?
Are these tape or dasd datasets?
If it is verified that there was exactly one per month, the relative generations will be -1, -2, etc thru -12.
Are you sure that you want to delete the ones that are so recent? |
|
| Back to top |
|
 |
Lord.of.Wind
New User
Joined: 17 Nov 2005 Posts: 34
|
|
|
|
Thank you for your reply first.
I raised a wrong question, in fact I should do a sort on a history GDG file to filter out records that generated 12 month ago. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6098 Location: 221 B Baker St
|
|
|
|
You're welcome
Is there still a question?
If there is, please post some info about the data and how you want to process it. |
|
| Back to top |
|
 |
Lord.of.Wind
New User
Joined: 17 Nov 2005 Posts: 34
|
|
| Back to top |
|
 |
|
|