View previous topic :: View next topic
|
Author |
Message |
mpcollins
New User
Joined: 02 Nov 2022 Posts: 2 Location: United States
|
|
|
|
I am an Endevor administrator. I have a processor that executes a COBOL compilation. If the program is DB2, it also runs a REXX that builds and submits a bind job. When running the REXX, which appears to execute correctly, I get a return code of 5. How can I determine which command is generating the RC of 5, besides adding a display of the RC after every line? Does using EXIT to end the program give it a return code of 5? Is there a way to set the RC myself to 0 when execution has been completed? |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
mpcollins
New User
Joined: 02 Nov 2022 Posts: 2 Location: United States
|
|
|
|
I discovered the reason for the RC of 5. The program that I am using to call TSO will return a RC of 5 if no TSO statements are execxuted. Instead, REXX statements are execẗed. Thanks. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1334 Location: Bamberg, Germany
|
|
|
|
The following RC values and meanings are possible:
Values / Meaning
0 No error. The command, instruction, or nested command list completed successfully.
–1 The command, instruction, or nested command list encountered an error. The –1 return code passes control to the FAILURE label if you code SIGNAL ON FAILURE.
–3 The command or nested command list is not authorized for this operator or the REXX ADDRESS environment is not valid. The –3 return code passes control to the FAILURE label if you code SIGNAL ON FAILURE.
–5 The command list is canceled. The –5 return code passes control to the HALT label if you code SIGNAL ON HALT.
Others Other return codes are set by individual commands, instructions, or nested command lists. |
|
Back to top |
|
|
|