Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What will happen if DD name mentioned in JCL not exists?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Wed May 04, 2005 9:36 am    Post subject: What will happen if DD name mentioned in JCL not exists?
Reply with quote

What will happen if DD name mentioned in JCL not exists?
Back to top
View user's profile Send private message
References
kanak

Moderator


Joined: 12 Mar 2005
Posts: 259
Location: India

PostPosted: Wed May 04, 2005 3:04 pm    Post subject:
Reply with quote

it will abend...i got something like this
REASON CODE 2704043E, DDNAME JOBLIB
*S806 --ABEND!--
Back to top
View user's profile Send private message
pr_ibm

New User


Joined: 04 May 2005
Posts: 9

PostPosted: Wed May 04, 2005 7:47 pm    Post subject:
Reply with quote

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

Moderator


Joined: 05 May 2005
Posts: 102
Location: Navi Mumbai, India

PostPosted: Fri May 06, 2005 11:52 am    Post subject:
Reply with quote

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

Moderator


Joined: 12 Mar 2005
Posts: 259
Location: India

PostPosted: Fri May 06, 2005 12:48 pm    Post subject:
Reply with quote

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

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Fri May 06, 2005 10:03 pm    Post subject:
Reply with quote

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

Super Moderator


Joined: 30 May 2003
Posts: 1504

PostPosted: Sat May 07, 2005 7:12 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1