Page 1 of 1

What happens to DD if not referenced?

PostPosted: Tue May 20, 2008 3:01 pm
by chasermf
What happens, If DD statement is given for a job step, but not used by the program executed by that job,


please reply as soon as possible


regards,
chasermf

Re: JCL

PostPosted: Tue May 20, 2008 3:18 pm
by jayind
Nothing happens... since it is not referred in the program, it wont throw any error..
but otherway it will be an error. For example, you have referred on file name in program but not mentioned in the JCL will be an error.
Hope this clarifies your doubt..

Re: JCL

PostPosted: Tue May 20, 2008 3:31 pm
by chasermf
can anyone give be better sugggestion for this please as soon as possible

Re: JCL

PostPosted: Tue May 20, 2008 3:45 pm
by jayind
also, please check the DISP parameter on the dataset. If you find it is an unwanted code, you can comment that line. To get a better answer, please post the piece of code realted to that JCL Step expanded.

Regards,
Jay

Re: JCL

PostPosted: Tue May 20, 2008 3:48 pm
by jayind
Looks like the questions you are posting related to interview questions, is that correct?

Re: What happens to DD if not referenced?

PostPosted: Tue May 20, 2008 11:57 pm
by dick scherrer
Hello,

can anyone give be better sugggestion for this please as soon as possible
What seems to be the hurry?

What better answer than:
a. nothing will happen as the dd is not referenced in the program
and
b. an error may be thrown if the dataset name does not exist or there is some other problem with the dd statement.

You appear to believe there might be something more/better. What do you have in mind?

Re: What happens to DD if not referenced?

PostPosted: Fri May 23, 2008 2:06 am
by freelar
If it's not in a shared PROC remove it, if it is Dummy it out in the JCL, but as stated if it's not referenced by the program what is the problem as there shouldn't be one....