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

retrieving envelope information out of GDG base.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
VintageReceiver

New User


Joined: 19 Jul 2017
Posts: 8
Location: USA

PostPosted: Thu Aug 10, 2017 8:13 pm
Reply with quote

Hi what is the best way to find out when GDG base was created?
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Thu Aug 10, 2017 8:33 pm
Reply with quote

1. Read same questions from other topics
2. Try to use LISTDS and/or LISTCAT
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Aug 10, 2017 8:41 pm
Reply with quote

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

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Aug 11, 2017 7:42 pm
Reply with quote

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

New User


Joined: 19 Jul 2017
Posts: 8
Location: USA

PostPosted: Fri Aug 11, 2017 8:57 pm
Reply with quote

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

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Tue Aug 15, 2017 10:26 am
Reply with quote

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

New User


Joined: 19 Jul 2017
Posts: 8
Location: USA

PostPosted: Wed Aug 16, 2017 6:46 pm
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts GDG generation name to GDG Base name ... DFSORT/ICETOOL 3
No new posts Compile Sp Cobol base COBOL Programming 1
No new posts VSAM LISTCAT INFORMATION JCL & VSAM 2
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
Search our Forums:

Back to Top