>>-strerror--error_code--reason_code--stem---------------------><
Function
strerror retrieves diagnostic text for error codes and
reason codes.
Parameters
- error_code
- Hex value for an error code as returned in ERRNO for other SYSCALL
host commands. Specify 0 if text for this code is not being requested.
- reason_code
- Hex value for the reason code as returned in ERRNOJR for other
SYSCALL host commands. Specify 0 if this code is not being requested.
- stem
- The name of a stem variable used to return the information.
Upon return, stem.0 contains the number of variables returned.
You can use the predefined variables beginning with SE_ or their equivalent
numeric values to access the values that they represent. See REXX predefined variables for the numeric values. For example, stem.se_reason accesses
the reason code text. If text is unavailable, a null string is returned.
Variable |
Description |
---|
SE_ERRNO |
Text for the error number. |
SE_REASON |
Text for the reason code. |
SE_ACTION |
Text for any action to be taken to
correct this error. This variable will be available only when a reason
code is requested. |
SE_MODID |
Name of the module that detected
the error. This variable will be available only when a reason code
is requested. |
Example
To get error text for the last syscall error:
"strerror" errno errnojr "err."