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 

Rexx Return Code RC(-3)

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


Joined: 30 May 2006
Posts: 2
Topics: 1

PostPosted: Tue May 30, 2006 12:13 am    Post subject: Rexx Return Code RC(-3) Reply with quote

Whenever i try to execute REXX program i got a return code RC(-3)


How to overcome the return code RC(-3)?
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue May 30, 2006 12:32 am    Post subject: Reply with quote

venkat_nec,

Here is a brief description about RC = -3 and hope it helps:

Code:

You can issue host commands from a REXX program. When the language
processor processes a clause that it does not recognize as a REXX instruction or
an assignment instruction, the language processor considers the clause to be a
host command and routes the command to the current host command environment.
The host command environment processes the command and then returns control
to the language processor.

For example, in REXX processing, a host command can be:
1 A TSO/E command processor, such as ALLOCATE, FREE, or EXEC
2 A TSO/E REXX command, such as NEWSTACK or QBUF
3 A program that you link to or attach
4 An MVS system or subsystem command that you invoke during an extended
MCS console session
5 An ISPF command or service
6 An SAA CPI Communications call or APPC/MVS call

If a REXX exec contains
FRED var1 var2

the language processor considers the clause to be a command and passes the
clause to the current host command environment for processing. The host
command environment processes the command, sets a return code in the REXX
special variable RC, and returns control to the language processor. The return code
set in RC is the return code from the host command you specified. For example,
the value in RC may be the return code from a TSO/E command processor, an
ISPF command or service, or a program you attached. The return code may also
be a -3, which indicates that the host command environment could not locate the
specified host command (TSO/E command, CLIST, exec, attached or linked routine,
ISPF command or service, and so on). A return code of -3 is always returned if you
issue a host command in an exec and the host command environment cannot
locate the command.

Tip: If you issue a host command from a REXX exec that is running in an
authorized or isolated environment, a -3 return code may be returned.
If a system abend occurs during a host command, the REXX special variable RC is
set to the negative of the decimal value of the abend code. If a user abend occurs
during a host command, the REXX special variable RC is set to the decimal value
of the abend code. If no abend occurs during a host command, the REXX special
variable RC is set to the decimal value of the return code from the command.

Certain conditions may be raised depending on the value of the special variable
RC:
1 If the RC value is negative, the FAILURE condition is raised.
2 If the RC value is positive, the ERROR condition is raised.
3 If the RC value is zero, neither the ERROR nor FAILURE conditions are raised.

If you issue a host command in a REXX exec, you should
enclose the entire command in double quotation marks, for example:
"routine-name var1 var2"

TSO/E provides several host command environments that process different types of
host commands. The following topics describe the different host command
environments TSO/E provides for non-TSO/E address spaces and for the TSO/E
address space (TSO/E and ISPF).

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
venkat_nec
Beginner


Joined: 30 May 2006
Posts: 2
Topics: 1

PostPosted: Tue May 30, 2006 1:18 am    Post subject: Reply with quote

Thanks shekar.

i trying to debug
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12381
Topics: 75
Location: San Jose

PostPosted: Tue May 30, 2006 5:16 am    Post subject: Reply with quote

venkat_nec,

An return code of -3 is because of missing ISPEXEC environment. Check this link which explains in detail about running ISPF in batch

http://mvsforums.com/helpboards/viewtopic.php?t=5276&highlight=batchpdf

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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