View previous topic :: View next topic
|
Author |
Message |
Rohit_Soni
New User
Joined: 21 Jan 2014 Posts: 3 Location: India
|
|
|
|
Hi,
I am trying to find the answer for one question. Can anyone please help.
I tried searching the forum and previous threads, however, could not locate the relevant thread.
Question:
JOB A calls PROC B in its Step 10, and PROC B calls PROC C in its step 5, now STEP 20 is abend in PROC C, how to pass the RESTART instruction to RESTART the STEP 20 in PROC C.
Thanks for suggestions in advance. |
|
Back to top |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
RESTART=JOBSTEPNAME.PROCSTEPNAME
where JOBSTEPNAME is the name of the step in the JCL &
PROCSTEPNAME is the name of the step in the PROC |
|
Back to top |
|
|
Rohit_Soni
New User
Joined: 21 Jan 2014 Posts: 3 Location: India
|
|
|
|
Thank you for the response.
Solution that you are proposing is applicable when we have a abend in the proc which is directly called from a job.
I am looking for the solution when proc has step abend and is called from another proc, and not directly from job.
"JOB A calls PROC B in its Step 10, and PROC B calls PROC C in its step 5, now STEP 20 is abend in PROC C, how to pass the RESTART instruction to RESTART the STEP 20 in PROC C "
Thanks |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
I looked into this several years ago.
I did a tremendous amount of research.
The final conclusion is: IT CAN NOT BE DONE.
Go ahead and ask ten more times, the answer will be the same.
An alternative is to have PROC C be invoked as an INCLUDE within PROC B.
This makes it part of PROC B, and not its own PROC.
You have to change the code of PROC C, removing the PROC statement and changing step names as not to duplicate PROC B steps.
Your restart will be now be on the newly created PROC B step. |
|
Back to top |
|
|
Rohit_Soni
New User
Joined: 21 Jan 2014 Posts: 3 Location: India
|
|
|
|
Thank you for the response.
Thanks |
|
Back to top |
|
|
|