As you use the PROC SQL statements that are available
in the SQL pass-through facility, any error return codes and error
messages are written to the SAS log. These codes and messages are
available to you through these SAS macro variables:
contains the DBMS return
code that identifies the DBMS error.
contains descriptive
information about the DBMS error that the DBMS generates.
The contents of the
SQLXRC and SQLXMSG macro variables are printed in the SAS log using
the %PUT macro. They are reset after each SQL pass-through facility
statement has been executed.