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
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How to override loadlib?
What are the difference between jcl and jes?
Suppose I have five jobs to do. But I want to hold one?
Why block size is multiple of lrecl in jcl?
what is the resolution for sb37 error
can any one plzzzzzz tell the jcl code for creating ps using idcams
A dd statement consists of 4 fields. Name them?
what is the JCL statement consists of?
Are there any set of rules for the names of the steps used in a job? What are they?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Explain about ISPF/TSO Commands
What is notcat 2 - gs?
Explain about LMQUERY�give a dialog information about a data set
Is it possible to left uncode disp? If yes, how?