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
Explain how can a stopped job be started again?
In sms datasets, what is the function of the dd mgmtclas keyword?
Where can program checkpoints be stored for use in a restart?
Does jcl support automatic restart?
What are hierarchy levels in jcl?
Is acct parameter mandatory?
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?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Explain how can the submitting users racf authority be overridden in a job stream?
How can a jobs execution priority be modified?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
what is the use of IEBGENER utility?
what is SOC4 error?
How can values be passed from the job stream to an executable program?