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

Restarting a PROC from from a particular step having cond


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

New User


Joined: 10 Nov 2006
Posts: 49
Location: Canada

PostPosted: Wed Dec 27, 2006 9:10 pm
Reply with quote

Hi,
I need to restart PROC from a particular step when it abends.
But the problem is that the step which i need to restart is having if statement..
eg:-
//*
// IF (MQSTEP02.RC GT 0) THEN
//*
//ABORT03 EXEC PGM=M703712C
//STEPLIB DD DSN=ENDN1.D06DADMT.SBATLOAD,DISP=SHR

So on restarting it gives problem since RC of mentioned step is not available.
Can anyone suggest a solution.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 27, 2006 11:32 pm
Reply with quote

Hello,

Try inserting this jcl after your job card and before the execute for the restart. This "step" will "run" and produce an RC=12 because there is no sysin dd statement;

Code:

//MQSTEP02 EXEC PGM=IEBGENER           
//SYSUT1   DD *                         
DATA                                   
/*                                     
//SYSUT2   DD SYSOUT=*                 
//SYSOUT   DD SYSOUT=*                 


Code:
IEF142I MSRDSGNR MQSTEP02 - STEP WAS EXECUTED - COND CODE 0012   


The IF that refers to MQSTEP02 may work this way. Please give it a try and let us know.
Back to top
View user's profile Send private message
kaushik8205

New User


Joined: 10 Nov 2006
Posts: 49
Location: Canada

PostPosted: Wed Dec 27, 2006 11:52 pm
Reply with quote

Thnax for the response..
but this not the only scenario..
Some other step in the proc mite b having cond LT 4 or equal to zero..
wat v need is a generic solution to bypass the if condition for the step, from which v r restarting the job...
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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
Search our Forums:

Back to Top