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
 

 

Restarting a PROC from from a particular step having cond

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Restarting a PROC from from a particular step having cond
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

Site Director


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

PostPosted: Wed Dec 27, 2006 11:32 pm    Post subject:
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    Post subject:
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    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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


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