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

when we use sysprint and sysout statements

3 Answers  


what are the options in file-aid to edit vsam dataset and to compare data sets.

2 Answers   Ocwen,


wht r different types of sorts ?

1 Answers   L&T,


how GDGs are concatinated?

4 Answers   HSBC,


Is it possible to left uncode disp?

0 Answers  






What are three major types of JCL statements? What are their functions?

1 Answers  


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

0 Answers   IBM,


Can anyone tell me the syntax for printing two files at two different destinations in a single step?

3 Answers  


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

0 Answers   IBM,


which parameter is use to declare the name of dataset in dd statement?

0 Answers   IBM,


How to execute 2nd and 4th steps among 5 steps in jcl proc?

0 Answers  


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

0 Answers  


Categories