Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 & VSAM
View previous topic :: :: View next topic  
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

kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
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: 98
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: 252
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

Active User


Joined: 10 Mar 2005
Posts: 432
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: 1592

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts what will happen improper PCB order s... srinivasulu.p IMS DB/DC 1 Mon Mar 24, 2014 8:27 am
No new posts What is supposed to happen when the G... superk JCL & VSAM 10 Fri Dec 13, 2013 9:39 pm
No new posts HOW TO INCREASETHE GDG LIMIT ,WHICH E... cmsmoon JCL & VSAM 7 Wed Dec 04, 2013 4:25 pm
No new posts Ttruncation happen in db2 table while... sivasaras DB2 4 Fri Sep 27, 2013 8:53 pm
No new posts Read filenames mentioned in the recor... Vidya Bhama COBOL Programming 11 Thu Jan 12, 2012 10:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us