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 / vaneesh khurana

Calling catalog proc
Pass the symbolic parameter name to C while executing
proc(CATPROC)

//STEP1 EXEC CATPROC,C=NAME2
------------------------------------

Catlaog Proc

Here third dataset name which was "THIRD.FILENAME" earlier
will get overridden with "NAME2.FILENAME"

//CATPROC PROC A=FIRST,B=SECOND,C=THIRD,D=FOURTH,E=FIFTH

//STEP2 EXEC PGM=PGM1

//DFILES DD DSN=&A..FILENAME
DD DSN=&B..FILENAME
DD DSN=&C..FILENAME
DD DSN=&D..FILENAME
DD DSN=&E..FILENAME

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any command to check wether the ps file is in sorted order?

2430


what is use of space parameter in dd statement?

758


Explain the jcl exec statement?

649


What is the purpose of the dd keylen parameter?

724


What do you understand by the terms: joblib and steplib?

626






Can we call instream to catalog and catalog to instream?

683


how JCL works?

796


Why include statement is used in a jcl?

689


What is the function of the dd mgmtclas keyword in sms datasets?

738


What is the function of a dd statement?

709


How can an in-stream dataset be terminated?

848


What are the utility programs in jcl?

648


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

705


How do you access an uncatalogued dataset in a jcl?

729


How to alter the parameters for the existing gdg?

712