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 

GDG Clarification

 
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
yrcreddy
Beginner


Joined: 28 Dec 2005
Posts: 27
Topics: 12

PostPosted: Tue Jun 19, 2007 6:17 am    Post subject: GDG Clarification Reply with quote

Hi,

I have seen one of my production job it has 5 steps.At step3 there are using the gdg as input GT.C00T.KBY.DOCUTEXT.DATASET.XREF(+1),DISP=OLD/DISP=SHR.This GDG is not created any where in the current job.As I know if we code the GDD like GT.C00T.KBY.DOCUTEXT.DATASET.XREF(+1),DISP=SHR this should be created in the prior steps of the current job.

Can u please any body let me know what is the meaning of it.
_________________
Thanks,
Ramachandra Reddy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Jun 19, 2007 6:21 am    Post subject: Reply with quote

yrcreddy,

Are you sure that they are not creating the GDG in the first 2 steps? Your Job will fail with a JCL error if you try with +1 gen

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yrcreddy
Beginner


Joined: 28 Dec 2005
Posts: 27
Topics: 12

PostPosted: Tue Jun 19, 2007 7:41 am    Post subject: Reply with quote

Kolusu,

yes i am sure.The gdg is not creating in the current job.

is there any reason behind that one.
_________________
Thanks,
Ramachandra Reddy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Jun 19, 2007 7:47 am    Post subject: Reply with quote

yrcreddy,

Read my post carefully once again. If the GDG is not created in the same job and if you are refering the +1 generation your job will ABEND.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jyoung
Beginner


Joined: 10 Nov 2005
Posts: 36
Topics: 2
Location: Flint, MI

PostPosted: Tue Jun 19, 2007 8:45 am    Post subject: Reply with quote

Hi yrcreddy,
Is the job using procs or includes? If so are you looking at the jcl listing that is produced when the job runs? That will tell you all of the files that were used.
Back to top
View user's profile Send private message
hchinnam
Beginner


Joined: 04 Feb 2005
Posts: 31
Topics: 10

PostPosted: Wed Jun 20, 2007 7:05 am    Post subject: Reply with quote

May be it is created in one of the programs you are executing step1 and 2 of your JCL.
Back to top
View user's profile Send private message
jajularamesh
Beginner


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Wed Jun 20, 2007 7:14 am    Post subject: Reply with quote

Hi hchinnam,

You mean to say the dataset is getting created dynamically.

if that is true there should be a DDNAME for that Dynamically created file,

In our shop we have a utility callled MBALLOC which will be used for dynamically creating a file.

For that we have to give the DDNAME SYSALLOC

HI reddy please check in your JCL any extra DDNAME is present.If you have one Browse the file associated with the DDNAME you will find the file name that is dynamically created.

Correct me if i am wrong

Regards,
Venkata Apparao Jajula(Ramesh)
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 20, 2007 7:48 am    Post subject: Reply with quote

dynamically creating gdg's is not alot of fun, I doubt if that is the problem.

I believe jyoung, has hit upon the solution (actually the problem).

gotta look at them jes outputs; viewing JCL in edit or view just does not allow for proper interpretation. I often use TYPRUN=SCAN if I have a question on how the JCL expands.

I have no idea what yrcreddy meant by this:
Quote:
...,DISP=OLD/DISP=SHR

_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Bharath.AK
Beginner


Joined: 13 Jul 2007
Posts: 34
Topics: 10
Location: Los Angeles

PostPosted: Mon Jul 16, 2007 4:27 am    Post subject: Reply with quote

dbzTHEdinosauer wrote:
dynamically creating gdg's is not alot of fun, I doubt if that is the problem.

I believe jyoung, has hit upon the solution (actually the problem).

gotta look at them jes outputs; viewing JCL in edit or view just does not allow for proper interpretation. I often use TYPRUN=SCAN if I have a question on how the JCL expands.

I have no idea what yrcreddy meant by this:
Quote:
...,DISP=OLD/DISP=SHR
Hi,

Did the production Job ran earlier successfully? If not, the first run will automatically ABEND's.
If the new generation is not getting generated in any of the earlier steps (neither in the embeded code, nor in JCL with a DDNAME reference), then, I strongly believe that the JCL is coded wrongly and w/o properly inspection, its been moved to production. In that case, you need to change the DISP parm to (NEW,CATLG,DELETE).

This answer is given by me on an assumption that the latest generation is not getting generated anywhere in the JCL.

Thanks,
Bharath
_________________
Regards,
BK

***** " If You Have To Do It, You Might As Well Do It Right.....If It Is Worth Doing At All, It's Worth Doing It Right !!! " *****
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