The value of SYSERRORTEXT is the text of the last error
message generated in the SAS log. For a list of SYSERR warnings and
errors, see
SYSERR Automatic Macro Variable.
Note: If the last error message
text that was generated contains an
&
or
%
and you are using the %PUT statement,
you must use the %SUPERQ macro quoting function to mask the special
characters to prevent further resolution of the value. The following
example uses the %PUT statement and the %SUPERQ macro quoting function:
%put %superq(syserrortext);
For more information,
see
%SUPERQ Function.