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 

PROC STEP EXECUTION BASED ON MULTIPLE COND CODES.

 
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
starbeni
Beginner


Joined: 16 Oct 2005
Posts: 1
Topics: 1
Location: Chennai

PostPosted: Sun Oct 16, 2005 3:14 am    Post subject: PROC STEP EXECUTION BASED ON MULTIPLE COND CODES. Reply with quote

Hai,

Condider the following scenario...

I have three steps in a PROC

STEP1
STEP2
STEP3

I want to execute the STEP3 if any of the previous step's RETURN CODE is more than ZERO i.e.,
EXECUTE STEP3 IF STEP1.RC >0 OR STEP2.RC >0

Shall anyone tell me how to achieve this?

Thanks.
_________________
Benington Prabhu W.S.
Chennai
India
Back to top
View user's profile Send private message Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sun Oct 16, 2005 10:32 am    Post subject: Re: PROC STEP EXECUTION BASED ON MULTIPLE COND CODES. Reply with quote

starbeni wrote:

Shall anyone tell me how to achieve this?


I think you pretty much had it:

Code:

//STEP1 EXEC PGM=X
//*
//STEP2 EXEC PGM=Y
//*
// IF (STEP1.RC > 0 | STEP2.RC > 0) THEN
//STEP3 EXEC PGM=Z
// ENDIF
Back to top
View user's profile Send private message
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