Suppose a proc step has a DD statement like
//ABC DD DSN=TEST.FILE1,DISP=SHR
DSN=TEST.FILE2,DISP=SHR
and the above DD name is overridden from the JCL as given
below
//procstepname.ABC DD DSN=TEST.FILE3 - Will the DD
statement now have just TEST.FILE3 or it will be TEST.FILE3
and TEST.FILE2?
Suppose if it is overridden twice like
//procstepname.ABC DD DSN=TEST.FILE3
//procstepname.ABC DD DSN=TEST.FILE4
Will this give a JCL error? If not, what will be final
output?

Answers were Sorted based on User's Feedback



Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FIL..

Answer / satheesh

Q1:
If you CODE below ovverride in JCL
//PROCSTEPNAME.ABC DD DSN=TEST.FILE3
it will ignore File1 & file2.
To use all three files, please give below override in JCL
//PROCSTEPNAME.ABC DD
// DD
// DD DSN=TEST.FILE3

Q2:Giving two ovverrides for same DD, will it give JCL
error.
No, Job will end with RC=0 and use second override ingonred
first one.

Is This Answer Correct ?    10 Yes 0 No

Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FIL..

Answer / pmacmo

Question 1:
TEST.FILE3 and TEST.FILE2
Note:
If you just want TEST.FILE3 you must nullify the TEST.FILE1
and TEST.FILE2 concatenation as in:
//procstepname.ABC DD DSN=TEST.FILE3.DISP=SHR
// DD DSN=NULLFILE

Question 2:
TEST.FILE3 and TEST.FILE2, the second override will be
ignored

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More JCL Interview Questions

We are aware of eliminating the duplicate records from outyput fiel using sort utility. Can we get the duplicate records in to another file in the Same sort utility?

2 Answers  


What is the difference between a symbolic and an override in executing a PROC?

2 Answers  


Explain about LMQUERY�give a dialog information about a data set

0 Answers  


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


Explain about LMMFIND - find a library member

1 Answers  






How to concatenate different LRECL of files?

2 Answers   IBM,


What is a MODEL Paramater in GDG ?

2 Answers   Xansa,


what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.

5 Answers   BirlaSoft, Infosys,


how can handle the s0c4 abend???

3 Answers  


How to submit jcl through a cobol program?

0 Answers  


Explain about REXX

1 Answers  


What are the parameter in the job card wihtout which job won't run........

10 Answers   IBM,


Categories