Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us