A statement about PROCs is "
In PROCs, Symbolic Parameters can be assigned on PROC and
EXEC", BUT On which EXEC,
(i) On the JCL's EXEC which is calling to PROC1.
(Inside JCL, EXEC PROC1)
(ii) or On the PROC's EXEC where it calls the PGM1.
(Inside PROC, EXEC PGM=PGM1)
Answer Posted / kalone
Hi,
It shud be on the Proc's Exec.See the below example :
//S1 EXEC PROC1,TYPE=P,CC=IN
Inside the PROC1
//PROC1 PROC
//P1 EXEC PGM=prog-name
//STEPLIB ....
//filename DD DSN=&&TYPE.&&CC
So , the Symbolic parameter TYPE and CC will be replaced by
P and IN
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
Explain dd statement in jcl?
What are some jcl statements that are not allowed in procedures?
What is the function of the dd dcb keyword?
Which statement is used to identify the private libraries in job?
how you can direct the data to spool using SYSOUT option?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
I need exexution process for JCL programs
What is one line to pass PARM from JCL to COBOL?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Is their any set of rules for dd? Explain.
Explain the jcl exec statement?
how can you check if a file is empty using jcl?
Explain the job statement in jcl?