What happens to DD if not referenced?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

What happens to DD if not referenced?

Postby chasermf » Tue May 20, 2008 3:01 pm

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
chasermf
 
Posts: 6
Joined: Wed May 07, 2008 7:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL

Postby jayind » Tue May 20, 2008 3:18 pm

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..
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time

Re: JCL

Postby chasermf » Tue May 20, 2008 3:31 pm

can anyone give be better sugggestion for this please as soon as possible
chasermf
 
Posts: 6
Joined: Wed May 07, 2008 7:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL

Postby jayind » Tue May 20, 2008 3:45 pm

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
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time

Re: JCL

Postby jayind » Tue May 20, 2008 3:48 pm

Looks like the questions you are posting related to interview questions, is that correct?
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time

Re: What happens to DD if not referenced?

Postby dick scherrer » Tue May 20, 2008 11:57 pm

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: What happens to DD if not referenced?

Postby freelar » Fri May 23, 2008 2:06 am

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....
freelar
 
Posts: 34
Joined: Fri May 23, 2008 1:38 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL