Rexx - ERRORTEXT


Advertisements

This method returns the Rexx error message associated with error number ‘errorno’. Please note that the error number needs to be a value from 0 to 99. This is useful in cases wherein your program returned an error code and you want to know what the error code means.

Syntax

ERROTEXT(errorno) 

Parameters

  • errorno − This is the error number for which the error message needs to be determined.

Return Value

This method returns the Rexx error message associated with error number errorno. Please note that the error number needs to be a value from 0 to 99.

Example

/* Main program */ 
say ERRORTEXT(16)

When we run the above program we will get the following result. The below error text is the message defined for the Rexx error with error number 16.

Output

Label not found
rexx_built_in_functions.htm
Advertisements