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


Please Help Members By Posting Answers For Below Questions

What is the use of symbol // in jcl?

931


when does a dataset go uncataloged?

840


How does jcl act on a cobol code?

659


Matching Logic in Jcl not in cobol.Could any one please answer this question

3675


which utility is used a dummy utility?

799






Does jcl support automatic restart?

763


which parameter is used to check the syntax of a jcl without executing it?

802


What are some jcl statements that are not allowed in procedures?

730


Explain how can return codes be tested before execution of a job step?

834


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.

1990


How jcl work to handle various input output file operations?

660


what are the types of abends that occur on job failure? And explain the possible causes of these

1123


What is jcl in mainframe?

692


How can the attributes of one sms dataset be copied to another dataset?

863


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1670