Suppose I have 5 dataset listed under a single DD name in a
catlogued PROC. How can I override one of those 5 dataset
(say 3rd dataset)?

Answer Posted / nans

In the catalogued PROC, the 3rd dataset can be overridden
like below.
ORIGINAL CODE IN CATALOGUED PROC:
*********************************
//S01 DD DSN=A.B.C.D1,DISP=SHR
// DD DSN=A.B.C.D2,DISP=SHR
// DD DSN=A.B.C.D3,DISP=SHR
// DD DSN=A.B.C.D4,DISP=SHR
// DD DSN=A.B.C.D5,DISP=SHR
//
...

OVERRIDDING 3RD CONCATENATED DATASET IN CATALOGUED PROC:
******************************
//PRCN.S01 DD
// DD
// DD DSN=A3.B3.C3.D3,DISP=SHR
// DD
// DD
//
...

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1586


Why block size is multiple of lrecl in jcl?

915


Suppose I have five jobs to do. But I want to hold one?

660


What dd statement is used to supply the name of a dataset?

779


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

718






Explain about ISPF/TSO Commands

1312


What are s0c1, s0c4, s0c5, s0c7 and socb?

705


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

976


What is the function of //jcllib statement?

806


what is the use of IEBGENER utility?

662


Explain the purpose of dd dummy statement?

671


How dummy is used in jcl?

646


What do you know about jcl?

649


What is the function of dd disp parameter?

656


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

923