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
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What is the purpose of disp parameter?
What is Cataloged Procedures?
Differentiate between the joblib and the steplib statements?
Explain about LMFREE�free data set from its association with data ID
Explain the function of a dd statement?
What is use of restart and how to use it?
A dd statement consists of 4 fields. Name them?
Can we call instream to catalog and catalog to instream?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Is it possible to define dd statements as you want?
how would you create a temporary dataset? And where will you use them?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
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.