IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to define creation date for GDG generations


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 9:16 am
Reply with quote

Hi All,

I am creating a test regarding GDGs and have a requirement to create a GDG generation that is 2 years old from now. Let's say Today's date is 10/13/2008,I need to create a generation that has a creation date of 10/12/2006.

Any tool i could use? or sample Job that would be very helpful!

Rechie icon_biggrin.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Oct 13, 2008 11:12 am
Reply with quote

Hi,

why would you want to do that ?

I'm sure the date can be zapped but why?


Gerry
Back to top
View user's profile Send private message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 11:17 am
Reply with quote

Hi Gerry,

I need to test the retention period of the GDG that will stay for two years. In order to test that, I should create a gneration that is 2 years old from today. Upon doing that, I could verify that the GDG will be rolled off after 2 years.

Is there a utility for this?

Thanks Gerry.

Rechie
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Oct 13, 2008 11:25 am
Reply with quote

Hi,

how many GDG's will be crated in a 2 year period ?


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Oct 13, 2008 11:26 am
Reply with quote

Hi,

correction, I meant created .

Gerry
Back to top
View user's profile Send private message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 11:29 am
Reply with quote

Hi Gerry,

24 GDGs all in all. 1 generation per month. All should have a retention period of two years.

Rechie
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Oct 13, 2008 12:05 pm
Reply with quote

Hi,

if you build the GDGbase with 24 entries( with scratch and noempty options), the oldest one will not roll off until the 25th one is created.

For tape files you need to create the files with LABEL=EXPDT=99000 ie.

under catalog control.


Gerry
Back to top
View user's profile Send private message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 12:40 pm
Reply with quote

HI Gerry,

The issue is because of the retention period, even when the 25th generation is created, the first generation is still available.

All the GDGs are created with the retention period of 2 years (RETPD=730). So the when the 25th generation is created, the first generation is still there. I need to test these GDGs with the retention period of 2 years. That is why I need to mock the creation date itself.

Do you know how could I alter the Creation Date?

Thanks,

Rechie
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Oct 13, 2008 1:08 pm
Reply with quote

Hello Rechie and welcome to the forums,

Suggest you talk with your storage management people. Your environment most likely has many datasets that should "roll off" when they are past their expiration. I'd suggest you define your datasets the same way others with a similar retention requirement are defined.

If you want to perform a simple test, define some test files that retain 3 generatoins and create one per day and you should be able to see today's roll off by the end of the week. Again, i'd talk with the storage management people even to do this test.
Back to top
View user's profile Send private message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 2:52 pm
Reply with quote

Thanks Dick and Gerry,

Yup, I'll talk to them. I'm glad for the urgent response.
I never expected to have all this help just for a day.
Thank you very much guys!

More power! icon_biggrin.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Oct 13, 2008 3:15 pm
Reply with quote

Hi,

if you have a retention specified, when the 25th GDG is created, the first GDG will be scratched and uncatalogued if the retention has expired,

if the retention has not expired the gdg will appear in
STATUS--------ROLLED-OFF


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 13, 2008 3:18 pm
Reply with quote

Is it tape or DASD ?

If DASD and you have good storage people any expiry date or retention will be ignored under SMS

If tape, make sure that the dataset is retained under catalog control so when G0025V00 is created, gen 1 gets deleted and the tape returned to scratch.
Back to top
View user's profile Send private message
rechie jocson

New User


Joined: 13 Oct 2008
Posts: 6
Location: Philippines

PostPosted: Mon Oct 13, 2008 4:18 pm
Reply with quote

Thanks Guys,

It is DASD.

Thanks for your inputs regarding this.

So the Hierarchy on this is RETPD is higher than GDG limit?

We should wait for the file to expire before it can be uncatalouged?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 13, 2008 8:48 pm
Reply with quote

No, not at all. It all depends on how your storage people have set things up. Do they allow RETPD to be honoured or ignored.

For all datasets I set up and use a MGMTCLAS to do exactly what I want to do, and do not permit user specified RETPD or EXPDT to be honoured.

Also, there is a patch in HSM to scratch GDG datasets regardless of EXPDT or RETPD specified.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top