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
Is there any command to check wether the ps file is in sorted order?
what is use of space parameter in dd statement?
Explain the jcl exec statement?
What is the purpose of the dd keylen parameter?
What do you understand by the terms: joblib and steplib?
Can we call instream to catalog and catalog to instream?
how JCL works?
Why include statement is used in a jcl?
What is the function of the dd mgmtclas keyword in sms datasets?
What is the function of a dd statement?
How can an in-stream dataset be terminated?
What are the utility programs in jcl?
What are s0c1, s0c4, s0c5, s0c7 and socb?
How do you access an uncatalogued dataset in a jcl?
How to alter the parameters for the existing gdg?