For ERROR and FAILURE, the REXX special variable RC is set to the command return code, as usual, before control is transferred to the condition label.
For SIGNAL ON SYNTAX, RC is set to the syntax error number.