IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What will happen if DD name mentioned in JCL not exists?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Start CICS but A STORAGE SHORTAGE EXISTS CICS 2
No new posts What will happen if we dont code STOP... COBOL Programming 4
No new posts what will happen improper PCB order s... IMS DB/DC 1
No new posts What is supposed to happen when the G... JCL & VSAM 10
No new posts HOW TO INCREASETHE GDG LIMIT ,WHICH E... JCL & VSAM 7
Search our Forums:

Back to Top