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
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
What is the function of the steplib dd statement?
What are the 2 types of parameters in dd statement?
what happens in conversion stage in job processing?
which parameter is use to declare the name of dataset in dd statement?
what is the JCL statement consists of?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
List the various advantages of using jcl language?
What do you understand by the term job time – out and how can you overcome that?
What is the function of job statement in jcl?
Is there any command to check wether the ps file is in sorted order?
what are the various stages of job processing?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
What are hierarchy levels in jcl?
What is the purpose of the dd keylen parameter?