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
What is the use of symbol // in jcl?
when does a dataset go uncataloged?
How does jcl act on a cobol code?
Matching Logic in Jcl not in cobol.Could any one please answer this question
which utility is used a dummy utility?
Does jcl support automatic restart?
which parameter is used to check the syntax of a jcl without executing it?
What are some jcl statements that are not allowed in procedures?
Explain how can return codes be tested before execution of a job step?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
How jcl work to handle various input output file operations?
what are the types of abends that occur on job failure? And explain the possible causes of these
What is jcl in mainframe?
How can the attributes of one sms dataset be copied to another dataset?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u