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
what is DSN parameter and DISP parameter is used for?
Can I send output of job to my remote device careerride123?
what happens in execution stage in job processing?
Explain the function of the dd dcb keyword?
Is condition checking possible in jcl? If yes, how?
How to pass data to a program that is coded in an exec statement?
List the different components of jcl statement?
when does a dataset go uncataloged?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What is the function of dd name parameter with a 2 part structure; audit.report?
Are there any set of rules for the names of the steps used in a job? What are they?
How dummy is used in jcl?
Explain the purpose of dd * statement in jcl?
what is a jcl?