View previous topic :: View next topic
|
Author |
Message |
VintageReceiver
New User
Joined: 19 Jul 2017 Posts: 8 Location: USA
|
|
|
|
Hi what is the best way to find out when GDG base was created? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
1. Read same questions from other topics
2. Try to use LISTDS and/or LISTCAT |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
In IDCAMS or TSO command line:
LISTCAT ALL ENTRIES(gdg-base)
Code: |
GDG BASE ------ XXXXXX.DISKLIST.SYSPRINT
IN-CAT --- [redacted]
HISTORY
DATASET-OWNER-----XXXXXX CREATION--------2015.033
RELEASE----------------2 LAST ALTER------2017.222
... |
As you can see, the GDG was created February 2, 2015 (2015.033) and last altered August 10 (2017.222).
Actually, rather to my surprise, LISTDS also coughed up the the creation date! |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
My pardon. LISTDS did not return the creation date of the GDG.
Code: |
listds disklist.sysprint history
XXXXXX.DISKLIST.SYSPRINT
--RECFM-LRECL-BLKSIZE-DSORG-CREATED---EXPIRES---SECURITY
VBA 125 27998 PS 2017.223 00.000 RACF
--VOLUMES--
REDACTED |
It returned the last update date of the GDG. In fact, is that the creation date of the most recent data set or the last update date of the GDG? I don't know! |
|
Back to top |
|
|
VintageReceiver
New User
Joined: 19 Jul 2017 Posts: 8 Location: USA
|
|
|
|
Hi Thanks for replies.
Actually I only care about GDG base, not members especially on bases that had bee created and only exist on their own with no gens. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I spent some time working on ideas and came up with this -
Code: |
GENERATION DATA GROUP DATA SETS CREATED ALTERED
AKSZ.ANUPAM.GDG 0 12/30/2013 12/30/2013
AMAURIM.DSN.TESTE 0 07/30/2014 01/01/1900
AXARP.TEST.GDGS 0 05/11/2017 01/01/1900
XXXXXX.DISKLIST.SYSPRINT 4 02/02/2015 08/14/2017 |
I had some trouble with details, the created date kept getting trashed and it took me much too long to figure that one out. It didn't more or less work properly until about 24 hours ago. It's much too large to present here, and needs much more work than I'm going to put into it to before it could be distributed.
I'm curious. This seems to be close to what you were saying you wanted. Is it? |
|
Back to top |
|
|
VintageReceiver
New User
Joined: 19 Jul 2017 Posts: 8 Location: USA
|
|
|
|
That's true.
It's pretty much dirty test environment where I want to factor out or remove unwanted and unused GDG bases prior running critical tests. |
|
Back to top |
|
|
|