Search notes:

SAS automatic macro variable: sysmacroname

&sysmacroname is an automatic macro variable that holds the name of the macro within which it was used:
%macro tq84_bar;
  %put bar: sysmacroname = &sysmacroname;
%mend;

%macro tq84_foo;
  %put foo: sysmacroname = &sysmacroname;
  %tq84_bar;
%mend;

%tq84_foo
/*
foo: sysmacroname = TQ84_FOO
bar: sysmacroname = TQ84_BAR
*/
Github repository about-SAS, path: /macro-processor/variables/automatic/sysmacroname.sas

See also

automatic macro variables

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...', 1745614927, '3.148.236.97', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/macros/variables/automatic/sysmacroname(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78