Page 1 of 1

Create GDG with Current Date in it

PostPosted: Thu Aug 06, 2015 6:17 pm
by naggarwal6
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

Re: Create GDG with Current Date in it

PostPosted: Thu Aug 06, 2015 6:22 pm
by BillyBoyo
Where are you writing your logs from?

Re: Create GDG with Current Date in it

PostPosted: Thu Aug 06, 2015 7:26 pm
by Robert Sample
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.