Create GDG with Current Date in it



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Create GDG with Current Date in it

Postby naggarwal6 » Thu Aug 06, 2015 6:17 pm

Hi All,
My requirement is to keep logs for each day in one dataset such that next day logs should go to another dataset. For this I am thinking of creating a GDG such that each generation contains logs for one specific day. Next day logs should go to next version of the GDG.

I am not getting a way to approach this issues.

Please help.

Thanks in Advance
Navdeep Aggarwal
naggarwal6
 
Posts: 10
Joined: Thu Dec 27, 2012 7:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Create GDG with Current Date in it

 

Re: Create GDG with Current Date in it

Postby BillyBoyo » Thu Aug 06, 2015 6:22 pm

Where are you writing your logs from?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Create GDG with Current Date in it

Postby Robert Sample » Thu Aug 06, 2015 7:26 pm

Standard JCL doesn't handle date processing. If you are using a job scheduler such as CA-7, what you want to do MAY -- or may not -- be possible. Most sites don't bother with a GDG for logs but just dump them into a data set whose name reflects the day.

And terminology is critical in IT where similar terms may mean very different things. Your use of the term "version" in
Next day logs should go to next version of the GDG.
is, quite simply, WRONG. A version for a GDG is a manually created replacement for a generation and is designated by GxxxxV01 (as opposed to the normal GxxxxV00). Only one version of any given generation can exist at a time -- if you create a 01 version the 00 version is removed from the system.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post