Error Numbers and Messages
The error numbers produced by syntax errors during the processing of Rexx
programs are all in the range 1 to 99. Errors are raised in response to conditions,
for example, SYNTAX, NOMETHOD, and PROPAGATE. When the condition is SYNTAX,
the value of the error number is placed in the variable RC when SIGNAL ON
SYNTAX is trapped.
Some errors have associated subcodes. A subcode is a one- to three-digit
decimal extension to the error number, for example,
911 in
19.911.
When an error subcode is available, additional information that
further defines the source of the error is given. The ERRORTEXT built-in function
cannot retrieve the secondary message, but it is available from the condition
object created when SIGNAL ON SYNTAX traps an error.