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
 

 

Creation Date of the latest version of a GDG

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

New User


Joined: 11 Dec 2006
Posts: 1
Location: India

PostPosted: Tue Dec 12, 2006 9:28 pm    Post subject: Creation Date of the latest version of a GDG
Reply with quote

Could anyone help me know the utility or the code snippet in JCL or COBOL(preferably in JCL if possible) to get the date of creation of the latest version of a GDG file
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Dec 13, 2006 7:58 pm    Post subject: Re: Creation Date of the latest version of a GDG
Reply with quote

You need to use Access Method Services (AMS):

Code:

//STEPXXXX EXEC PGM=IDCAMS                                         
//SYSPRINT DD   SYSOUT=*                                           
//SYSIN    DD   DATA                                               
  LISTCAT ENT('THE.GDG') ALL         
or
  LISTCAT ENT('THE.GDG.G0001V00') ALL     
/*                                                                 


'THE.GDG' can be either the base entry, in which case you will see the details for all of the generations, or the specific generation you want to check.
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


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