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 condition checking possible in jcl?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What are the parameters that are used in creating a gdg?
A dd statement consists of 4 fields. Name them?
can any one plzzzzzz tell the jcl code for creating ps using idcams
what is a jcl?
What are hierarchy levels in jcl?
What does a disposition of (new,catlg,keep) for a dsn mean?
i want to store 20 digits . how will u do it in cobol ?
Explain the function of job statement in jcl?
How to submit a jcl from cics?
Why include statement is used in a jcl?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Is their any set of rules for dd? Explain.
Explain the function of dd disp parameter?