z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ERRORTEXT

z/OS TSO/E REXX Reference
SA32-0972-00

Read syntax diagramSkip visual syntax diagram
>>-ERRORTEXT(n)------------------------------------------------><

returns the REXX error message associated with error number n. The n must be in the range 0–99, and any other value is an error. Returns the null string if n is in the allowed range but is not a defined REXX error number.

Error numbers produced by syntax errors during processing of REXX execs correspond to TSO/E REXX messages (described in z/OS TSO/E Messages.) For example, error 26 corresponds to message number IRX0026I. The error number is also the value that is placed in the REXX special variable RC when SIGNAL ON SYNTAX event is trapped.

Here are some examples:
ERRORTEXT(16)    ->    'Label not found'
ERRORTEXT(60)    ->    ''

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014