Search notes:

SAS automatic macro variables: &syserr &syserrortext and &syswarningtext

data tq84;
  set DoesNotExist;
run;

%put &=syserr        ; /* SYSERR=1012                                                                       */
%put &=syserrortext  ; /* SYSERRORTEXT=File WORK.DOESNOTEXIST.DATA does not exist.                          */
%put &=syswarningtext; /* SYSWARNINGTEXT=Data set WORK.TQ84 was not replaced because this step was stopped. */

data _null_;
  abort;
run;

%put &=syserr        ; /* SYSERR=20000                                                                       */
%put &=syserrortext  ; /* SYSERRORTEXT=Execution terminated by an ABORT statement at line 173 column 3.      */
Github repository about-SAS, path: /macro-processor/variables/automatic/error-warning.sas

Limitations

&syserr is reset at every data step boundary.

See also

automatic macro variables
error handling

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1759408078, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/macros/variables/automatic/errors-warnings(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78