IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to restart a step in Proc called by another proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rohit_Soni

New User


Joined: 21 Jan 2014
Posts: 3
Location: India

PostPosted: Mon Feb 17, 2014 3:18 pm
Reply with quote

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
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Mon Feb 17, 2014 4:40 pm
Reply with quote

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
View user's profile Send private message
Rohit_Soni

New User


Joined: 21 Jan 2014
Posts: 3
Location: India

PostPosted: Mon Feb 17, 2014 5:15 pm
Reply with quote

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
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Mon Feb 17, 2014 6:13 pm
Reply with quote

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
View user's profile Send private message
Rohit_Soni

New User


Joined: 21 Jan 2014
Posts: 3
Location: India

PostPosted: Mon Feb 17, 2014 6:55 pm
Reply with quote

Thank you for the response.

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top