Search notes:

SAS programming - macro statement: %macro

The %macro statement is used to define a macro. The definition of the macro is associated with the macro's name which follows: %macro:
%macro TQ84;
  macro definition
  goes here.

  &macro_variables are not resolved
  when the macro is compiled

  %macros are not executed when then
  macro is compiled.
%mend TQ84;
The macro processor stores the definition in a macro catalog.
Everything outside of such a macro definition is referred to as open code.

Session compiled macros

By default, SAS stores a macro in the WORK library.
Such macros are called session compiled macros.
Obviously, they are lost after a session terminates.

See also

macro statements
using macros
Use the dictionary.catalog dictionary table to select/show available macros.

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...', 1759408244, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/macros/statements/macro/index(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78