SAS Global Forum 2012 Attendees

Please visit this page for more information about the following papers:
  • An Advanced, Multi-Featured Macro Program for Reviewing Logs
  • Standardized Macro Programs for Macro Variable Manipulation
Welcome to my SAS macros sharing site! The best way to explore the macros available here is to search the site or review the categories.

The macros on this site were developed using SAS 9.1.3 and 9.2 on Windows. Many may work on non-Windows platforms. Before using any macro in production, please review the code, check for dependencies, and test the macro for compatibility within your system.

Feel free to contact me if you have any questions or feedback regarding these macros.



  • Arguments - The header of each macro contains a list of arguments and a short description of the argument. Additionally, most arguments are validated as required, specific values, or criteria specific to the macro.
  • Documentation - Notes on some of the macros regarding the reasons behind the process.
  • Headers - Each macro contains a standard header section with metadata, including author, creation date, purpose, revisions, and arguments.
  • Feedback - Feel free to send me feedback, comments, questions, or even macro revisions!


Subscribe to updates to all of the SAS macros on this website.


Use Now

The following code will allow users to run a specified macro immediately in the current SAS session. The following examples use ObsMac. Replace "ObsMac" with the desired macro.

/* Download SiteMacros macro */
filename code url "http://goo.gl/j6QhS";
%include code / nosource;
filename code clear;


To save a macro in an autocall library:

%SiteMacros(ObsMac, type=save, lib=macros);

Alternatively, to store a macro in a compiled macro catalog:

%SiteMacros(ObsMac, type=store, lib=macros);