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 GDG units for specific creation month?

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

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Mon Apr 28, 2008 9:15 am    Post subject: How to delete GDG units for specific creation month?
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 28, 2008 11:03 am    Post subject:
Reply with quote

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
View user's profile Send private message
Lord.of.Wind

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Mon Apr 28, 2008 2:05 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 28, 2008 10:10 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

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
View user's profile Send private message
Lord.of.Wind

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Tue Apr 29, 2008 11:06 am    Post subject:
Reply with quote

I raised my question here. icon_smile.gif
http://ibmmainframes.com/viewtopic.php?p=130513#130513
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 SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts Route a product's job to specific lpar vasanthz All Other Mainframe Topics 9 Thu Mar 02, 2017 2:22 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
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


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