View previous topic :: View next topic |
Author |
Message |
yrcreddy Beginner
Joined: 28 Dec 2005 Posts: 27 Topics: 12
|
Posted: Tue Jun 19, 2007 6:17 am Post subject: GDG Clarification |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Tue Jun 19, 2007 6:21 am Post subject: |
|
|
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 |
|
|
yrcreddy Beginner
Joined: 28 Dec 2005 Posts: 27 Topics: 12
|
Posted: Tue Jun 19, 2007 7:41 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Tue Jun 19, 2007 7:47 am Post subject: |
|
|
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 |
|
|
jyoung Beginner
Joined: 10 Nov 2005 Posts: 36 Topics: 2 Location: Flint, MI
|
Posted: Tue Jun 19, 2007 8:45 am Post subject: |
|
|
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 |
|
|
hchinnam Beginner
Joined: 04 Feb 2005 Posts: 31 Topics: 10
|
Posted: Wed Jun 20, 2007 7:05 am Post subject: |
|
|
May be it is created in one of the programs you are executing step1 and 2 of your JCL. |
|
Back to top |
|
|
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Wed Jun 20, 2007 7:14 am Post subject: |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jun 20, 2007 7:48 am Post subject: |
|
|
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 |
|
|
Bharath.AK Beginner
Joined: 13 Jul 2007 Posts: 34 Topics: 10 Location: Los Angeles
|
Posted: Mon Jul 16, 2007 4:27 am Post subject: |
|
|
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 |
|
|
|
|