| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| psridhar Beginner
 
 
 Joined: 16 May 2004
 Posts: 68
 Topics: 26
 
 
 | 
			
				|  Posted: Mon Oct 24, 2005 4:08 am    Post subject: Check for more than one condition before next step... |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 | 
			
				|  Posted: Mon Oct 24, 2005 4:48 am    Post subject: |   |  
				| 
 |  
				| Please try this: 
 
  	  | Quote: |  	  | //RUNPGM EXEC PGM=IKJEFT01,DYNAMNBR=20,COND.TCPIP=(4,LT),
 COND.TCPIP=(1954,EQ)
 
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| psridhar Beginner
 
 
 Joined: 16 May 2004
 Posts: 68
 Topics: 26
 
 
 | 
			
				|  Posted: Mon Oct 24, 2005 5:24 am    Post subject: |   |  
				| 
 |  
				| Hi 
 Thanks for the help.
 
 Regards
 Sridhar P
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |