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

Creation Date of the latest version of a GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Dec 13, 2006 7:58 pm
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 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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
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