View previous topic :: View next topic
|
Author |
Message |
vbhat
New User
Joined: 29 Apr 2005 Posts: 38
|
|
|
|
What will happen if DD name mentioned in JCL not exists? |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
it will abend...i got something like this
REASON CODE 2704043E, DDNAME JOBLIB
*S806 --ABEND!-- |
|
Back to top |
|
|
pr_ibm
New User
Joined: 04 May 2005 Posts: 9
|
|
|
|
It won't give any problem. I have executed one job with one DD name which is not used in program. I simply gave a statement like
//abcdef dd dummy.
My job was through. I dont think we will get any abend .
Thanks
Pr.. |
|
Back to top |
|
|
ankyhunk
Moderator
Joined: 05 May 2005 Posts: 98 Location: Navi Mumbai, India
|
|
|
|
I dont think the job will abend for a DD name since its an arbitrary name assigned to a dataset specified in DSN parameter. The utilities make use of certain DD names which if not given may cause problems. The S806 abend occurs if the dataset specified in DSN parameter is not found. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
sorry friends...
it was my mistake....job got executed successfully....even if dd name mention in jcl is not present in program...thanks... |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
If you need a dataset in shr-old-mod disposition but it does not exist, you will have a Job Failed- Dataset Not Found
If you run a COBOL program but the DD that you try to open does not exist you will have a error in execution of I/O that will cause a user abend.
If you run a COBOL program that does not needs(read: does not open)an older dataset but the jcl is not update it will also work fine. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
To my knowledge the only time a S806 abend occurs when running a Job is when a load module is invoked and it can't be found in any of the following associated with the Job:
Any of the system default loadlibs
Joblibs
Steplibs |
|
Back to top |
|
|
|