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 jcl in mainframe?
How to run cobol program using jcl?
how you can direct the data to spool using SYSOUT option?
What is condition checking in jcl? Is this possible?
Is automatic restart possible in jcl?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
what are the various stages of job processing?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the use of symbol // in jcl?
What is the purpose of dd * statement in jcl?
What is the function of //jcllib statement?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
How would you understand error(execution phase)?