GDG Versions created on same day

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Swapnil781
Member
Posts: 2
Joined: Tue Oct 11, 2011 11:33 am

GDG Versions created on same day

Post by Swapnil781 » Wed Nov 12, 2014 4:54 pm

Hello,

I have a requirement where in I need to process all the GDG versions created on same day.

Eg. FILE1.V101 -------- Created at 10.00 am
FILE1.V102 --------- Created at 11.00 am
FIle1.v1033 -------- Created at 5.00 pm
There can be any no of GDG versions created on same day.

Currently FILE1.V(x) has 100 generations, I want know as how can I determine the GDG versions created on same day ?
I am aware that If I use the base i.e. FILE1.V then all the GDGs can be processed but I only want to process versions created today.
Is there any JCL or Utility which can determine the GDG versions created on same day.

I tried using LISTCAT to determine the Creation date but could not get the desired solution.

Any Inputs/ helps appreciated .


Thanks
Thanks,
Swapnil

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Nov 12, 2014 5:08 pm

What problem did you have using LISTCAT?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Nov 17, 2014 7:45 pm

Swapnil781,
do you really mean versions or generations?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

jeff.holst
Member
Posts: 3
Joined: Wed Dec 10, 2014 12:35 am

Post by jeff.holst » Wed Dec 10, 2014 1:08 am

For starters, the dataset names you give are not valid GDG names. If the base were FILE1.V, the GDG dataset names would be of the format FILE1.V.GnnnnVmm, where mm is most often 00.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others