MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

first gdg generation needs to be kept blank

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Feb 23, 2006 5:29 am    Post subject: first gdg generation needs to be kept blank Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Feb 23, 2006 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CaptObvious
Beginner


Joined: 01 Feb 2006
Posts: 19
Topics: 1

PostPosted: Tue Feb 28, 2006 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group