MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to execute next step when there is a "Sytem Abend&q

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
cool.manoj
Beginner


Joined: 26 May 2010
Posts: 13
Topics: 5

PostPosted: Wed Oct 06, 2010 6:50 am    Post subject: How to execute next step when there is a "Sytem Abend&q Reply with quote

Hi,

i have to 2 steps in my job. I want to execute step2 only when return code of Step1 is 8/12 or when there is a "system abend".

//step1 exec pgm=myprog1
...
...
//Step2 exec pgm=myprog2,COND=(8,GT,step1)
...
...

This is working fine when Step1 returns 8 or 12 return code. However when there is system abend, Step2 isn't executing.

I modified COND to COND=((8,GT,step1),ONLY), then it worked fine when there is a system abend. However when there is a return code 8/12 this step isn't executing.

Is there anyway we can execute Step2 when there is an "System abend" or "return code 8/12"?

Thank you so much!

Regards,
Manoj.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Wed Oct 06, 2010 10:13 am    Post subject: Reply with quote

cool.manoj,

repeat step2 twice. Once to executive when the return code is 8 or 12 and the other when there is an abend. Since these 2 conditions are mutually exclusive step 2 runs only once

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group