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 

Help in Rexx , For setting RC to predefined value

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Fri Jun 10, 2005 7:21 am    Post subject: Help in Rexx , For setting RC to predefined value Reply with quote

Hi ,

I am executing REXX in batch , I want to set the RC to a predefined value
in Rexx . Thanks

Raj
Back to top
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Jun 10, 2005 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Fri Jun 10, 2005 7:41 am    Post subject: RC Reply with quote

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
View user's profile Send private message Send e-mail
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Fri Jun 10, 2005 7:55 am    Post subject: Reply with quote

I got it , Exit 4 worked
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Fri Jun 10, 2005 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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