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 define creation date for GDG generations

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to define creation date for GDG generations
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: 1703
Location: Australia

PostPosted: Mon Oct 13, 2008 11:12 am    Post subject:
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    Post subject: Reply to: How to define creation date for GDG generations
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: 1703
Location: Australia

PostPosted: Mon Oct 13, 2008 11:25 am    Post subject:
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: 1703
Location: Australia

PostPosted: Mon Oct 13, 2008 11:26 am    Post subject:
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    Post subject: Reply to: How to define creation date for GDG generations
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: 1703
Location: Australia

PostPosted: Mon Oct 13, 2008 12:05 pm    Post subject:
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    Post subject: Reply to: How to define creation date for GDG generations
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

Site Director


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

PostPosted: Mon Oct 13, 2008 1:08 pm    Post subject:
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    Post subject: Reply to: How to define creation date for GDG generations
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: 1703
Location: Australia

PostPosted: Mon Oct 13, 2008 3:15 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 13, 2008 3:18 pm    Post subject:
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    Post subject: Reply to: How to define creation date for GDG generations
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 13, 2008 8:48 pm    Post subject:
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    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 Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


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