Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to restart a step in Proc called by another proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to restart a step in Proc called by another proc
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    Post subject:
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    Post subject: TheMFKid
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: 645
Location: Pennsylvania

PostPosted: Mon Feb 17, 2014 6:13 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us