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
whats the diff bw the evaluate also and and?
What is NOTCAT ?
List the different components of jcl statement?
What are the difference between jcl and jes?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
How can return codes be tested before execution of a job step?
Explain the function of //jcllib statement?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How do you access an uncatalogued dataset in a jcl?
What parameters can be used to limit the number of records written to a sysout dataset?
What is the purpose of dd * statement in jcl?
what is the JCL statement consists of?
what is the difference between JES3 and JES2?
Suppose I have five jobs to do. But I want to hold one?
What are steplib and joblib?