| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Rajkannan Beginner
 
 
 Joined: 02 Jun 2004
 Posts: 64
 Topics: 31
 
 
 | 
			
				|  Posted: Fri Jun 10, 2005 7:21 am    Post subject: Help in Rexx , For setting RC to predefined value |   |  
				| 
 |  
				| Hi , 
 I am executing REXX in batch , I want to set the RC to a predefined value
 in Rexx . Thanks
 
 Raj
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| superk Advanced
 
  
 Joined: 19 Dec 2002
 Posts: 684
 Topics: 5
 
 
 | 
			
				|  Posted: Fri Jun 10, 2005 7:32 am    Post subject: |   |  
				| 
 |  
				| What do you mean by a "predefined value"? Are you pulling in this value from an input parameter, for example: 
  	  | Code: |  	  | /* REXX */
 Parse Arg therc .
 ....
 Exit therc
 
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Rajkannan Beginner
 
 
 Joined: 02 Jun 2004
 Posts: 64
 Topics: 31
 
 
 | 
			
				|  Posted: Fri Jun 10, 2005 7:41 am    Post subject: RC |   |  
				| 
 |  
				| Hi there, 
 I have a rexx which I am submitting throuh a batch job. When some
 condition matches I want to set the return code for the Job as 4 else I want to set the return code of the job to 0.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Rajkannan Beginner
 
 
 Joined: 02 Jun 2004
 Posts: 64
 Topics: 31
 
 
 | 
			
				|  Posted: Fri Jun 10, 2005 7:55 am    Post subject: |   |  
				| 
 |  
				| I got it  ,  Exit 4 worked |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| ofer71 Intermediate
 
 
 Joined: 12 Feb 2003
 Posts: 358
 Topics: 4
 Location: Israel
 
 | 
			
				|  Posted: Fri Jun 10, 2005 9:00 am    Post subject: |   |  
				| 
 |  
				| Don't forget: If you are running REXX with ISPF services, the return code determined by ZISPFRC, not by the EXIT statement. 
 O.
 ________
 Jaguar XF
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |