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 / muttiah
Let me frame the question in this way..
Say .. I have the job(Job1) which has a proc(proc1) and
this Proc1 is calling another Proc say Proc2..
So, you want to override the Dataset in a step of proc2 in
Proc1..This is possible..But overriding the dataset in
proc2 from the job1 is not possible.say proc A calls ProcB
and ProcB calls ProcC.. Then we can override details in
ProcC by ProbB only, but not with ProcA i guess you got the
point made.
//Job1 Job ....
//step1 exec proc1
//proc1 proc
//step1 exec proc2
//proc2 proc
//stepn exec pgm=iefbr14
//delstep dd dsn=Allinterivew.PS,disp=(mod,del,del),
// space=(trk,0)
Now change the code in proc1 as
//Proc1 proc
//step1 exec proc2
//stepn.delstep dd dsn=Deletefile.ps
In this way we can change the DS in proc2 from proc1. Hope
this makes much sense.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
how to do automated restart when a job abends?
What is the purpose of dd * statement in jcl?
Name a few IBM utility programs, and explain its function.
what are JCLLIB and STEPLIB in JCL?
Can we use DISP=SHR in output file in JCL
what JCL Procedures?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
which utility is used a dummy utility?
Are there any set of rules for the names of the steps used in a job?
Explain dfsort utility?
What parameter directs the output of the job log dataset?
What is the purpose of dd?
Explain how can an in-stream dataset be terminated?