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 

Check for more than one condition before next step...

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


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Mon Oct 24, 2005 4:08 am    Post subject: Check for more than one condition before next step... Reply with quote

Hi

I use the following statement in my JCL to execute the step RUNPGM based on the return code of the previus step TCPIP. If TCPIP returns less than 4 then I want to execute RUNPGM step.

Code:
//RUNPGM EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=(4,LT,TCPIP)


My requirement is to check for two conditions. I would like to run RUNPGM step if the return code of the previous step (TCPIP) is either less than 4 OR equal to 3454.

I used the below code but did not work.

Code:
//VDFNAMES EXEC PGM=IKJEFT01,DYNAMNBR=20,
//                        COND=((4,LT,TCPIP),(1954,EQ,TCPIP))


Can any body help me in handling this situation?

--------------------------------------------------------------------------------------

2. As far I know, IF clause in JCL can be used as follows.

Code:
//VDFSUB   IF ( TCPIP1.RC <= 4 & TCPIP2.RC <= 4 ) THEN


Can any body suggest me how to use OR condition in the IF.

Regards
Sridhar P
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 24, 2005 4:48 am    Post subject: Reply with quote

Please try this:

Quote:

//RUNPGM EXEC PGM=IKJEFT01,DYNAMNBR=20,COND.TCPIP=(4,LT),
COND.TCPIP=(1954,EQ)
Back to top
View user's profile Send private message Send e-mail
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 24, 2005 4:57 am    Post subject: Reply with quote

Please search before posting:

http://mvsforums.com/helpboards/viewtopic.php?t=2414&highlight=condition
Back to top
View user's profile Send private message Send e-mail
psridhar
Beginner


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Mon Oct 24, 2005 5:24 am    Post subject: Reply with quote

Hi

Thanks for the help.

Regards
Sridhar P
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