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?
Answer Posted / 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 View All 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) ?
Differentiate between addressing mode and run mode.
What is jcl in mainframe, and how many types of jcl statements are there for a job?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the function of the steplib dd statement?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
Explain about LMFREE�free data set from its association with data ID
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
what is the difference between JES3 and JES2?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
How can a stopped job be started again?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?