How can I override a dsn that is contained in a proc called
by another proc? I need to do the override in the calling
JCL.
Answer Posted / piyush mani
//PROC1 PROC
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=XYZ, DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
// PEND
//JJJ JCLLIB ORDER=PROCLIB PATH
//PROC2 PROC
//STEP2 EXEC PROC1
//JOBNAME JOB PARAMETERS
//JJJ JCLLIB ORDER=PROCLIB PATH
//PROC3 PROC
//STEP2.DD1 DSN=NEW NAME,DISP=SHR
THIS IS D WAY....
THIS PROG. WILL DO NOTHING IT'S JUST AN EXAMPLE..
GIV UR FEEDBACK
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What are the 4 fields in dd statement?
What is one line to pass PARM from JCL to COBOL?
What do you understand by the term job time – out and how can you overcome that?
For what purpose steplib and joblib are used ?
What are the 2 types of parameters in dd statement?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What is the significance of addrspc parameter in exec statement?
which parameter is use to declare the name of dataset in dd statement?
What is the function of dd disp parameter?
What is use of restart and how to use it?
Explain the job statement in jcl?
What does a disposition of (MOD,DELETE,DELETE) mean ?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Define concatenating?