How 2 compare creation date of GDG's Generations & curre

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
vijay_10b
Member
Posts: 9
Joined: Tue Sep 04, 2012 4:41 pm

How 2 compare creation date of GDG's Generations & curre

Post by vijay_10b » Thu Jun 06, 2013 2:36 pm

Hi,

Can you someone guide me on the below issue.
We have GDG xxx.yyy with generation Gnn1,Gnn2..... which is generated for each day.

In another job we are using the above GDG's current Generation has xxx.yyy(0) , Now we need to confirm the date for current version and execute the job........if the current generations date is not equal to system date we need to bypass other steps.

I was able to get the creation date with the help of LISTCAT .......but can some help me how i can compare it with system/current date.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Jun 07, 2013 1:32 am

Well, JCL alone will not do what you want. . .

You will need to write a bit of code (COBOL, Easytrieve, etc) or create Sort Control statements to compare the values from the system and the LISTCAT.
Have a good one

vijay_10b
Member
Posts: 9
Joined: Tue Sep 04, 2012 4:41 pm

Post by vijay_10b » Fri Jun 07, 2013 5:32 pm

create Sort Control statements to compare the values from the system and the LISTCAT.

Hi DikDude
Can you please provide me any reference link or example it will be very helpful.........i'm not sure how to extract the date from LISTCAT.

Thankyou

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Jun 07, 2013 9:06 pm

And what happens if the dataset is created just before midnight and is to be processed just after?

As for reference link - did you think about looking in the sort manual for your sort product?
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Jun 09, 2013 2:53 am

Suggest you post one of the line entries from the LISTCAT.

Which sort product is being used?
Have a good one

anu alexander
Member
Posts: 6
Joined: Fri Jul 05, 2013 7:52 pm

Post by anu alexander » Fri Jul 05, 2013 8:15 pm

list cat can be used like this
//exec pgm=idcams
//sysin dd *
listcat entries(file name) all
/*
it will give creation date in julian format.

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