View previous topic :: View next topic |
Author |
Message |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Thu Feb 23, 2006 5:29 am Post subject: first gdg generation needs to be kept blank |
|
|
Hai All,
I have a basic question in where in i have created a GDG and i want to make the first generation as empty ? Is it possible that after creating a GDG ,i can have an empty generation SHEKAR.TEST.GDG.G0001V00 without having a +1 submission job.
I came across a GDG where in there is no +1 GDG JCL to be created, but in the JCL i have seen refering to the current generation (0).Is it possible like that ? Please correct if i am in a wrong misconception ? _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Thu Feb 23, 2006 5:55 am Post subject: |
|
|
Quote: |
I have a basic question in where in i have created a GDG and i want to make the first generation as empty Is it possible that after creating a GDG ,i can have an empty generation SHEKAR.TEST.GDG.G0001V00 without having a +1 submission job.
|
shekar123,
use Option 3.2 and allocate an empty gen.
Quote: |
I came across a GDG where in there is no +1 GDG JCL to be created, but in the JCL i have seen refering to the current generation (0).Is it possible like that ? Please correct if i am in a wrong misconception ?
|
The generation might be created by another job and this job is only reading it as input , and they are refering the latest generation. Sometimes files get transmitted via FTP or NDM and they create a generation which will trigger a Job and the triggered job will read the GDG specifying generation(0) in the JCL
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
CaptObvious Beginner
Joined: 01 Feb 2006 Posts: 19 Topics: 1
|
Posted: Tue Feb 28, 2006 12:50 pm Post subject: |
|
|
A job that refers to generation (0) would just be reading the last generation. The confusion probably stems from the situation where you have a single jobstream that creates a new generation and then reads that as input in a later step. In those situations both steps need (+1) because the new generation isn't cataloged until the job ends. Any later job which needs that generation as input would be set to (0).
I'm not sure why you'd need an empty generation, though. If you're using GDG control correctly, that empty generation would roll off eventually, and you'd have to add a new one. And you'd have to hard-code the generation number in your JCL, or else you'd have to keep changing the generation number (-1, -2, -3, etc) every time a new generation is added to the group, to pick up the empty one. Wouldn't it be easier just to code a DD DUMMY? Or use an empty dataset which isn't a GDG? |
|
Back to top |
|
 |
|
|