As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Difference between revisions of "Which SASAUTOS Macros Are Available to My SAS® Session?"

From sasCommunity
Jump to: navigation, search
(created page for a useful paper on listing available macros)
 
(Online materials: link to code directly (File:List sasautos.sas))
Line 15: Line 15:
 
== Online materials ==
 
== Online materials ==
 
* [https://support.sas.com/resources/papers/proceedings09/076-2009.pdf Download the .pdf], which includes the explanation and full source code for the '''%list_sasautos''' macro
 
* [https://support.sas.com/resources/papers/proceedings09/076-2009.pdf Download the .pdf], which includes the explanation and full source code for the '''%list_sasautos''' macro
 +
* [http://www.sascommunity.org/mwiki/images/8/8a/List_sasautos.sas Download the '''%list_sasautos.sas''' macro]
  
 
== See also ==
 
== See also ==

Revision as of 09:54, 28 September 2017

Harry Droogendyk

Stratia Consulting Inc.

Lynden, ON

Abstract

The SAS installation process makes a number of SAS supplied macros available to your SAS session via the SASAUTOS option. In addition, useful macros created by users in your organization may be made available to SAS users via SASAUTOS or by way of the Compiled Stored Macro facility. But… how do I know which macros are available? And, if a macro has been defined in more than one location, which one will be utilized? This paper will explain the different methods of defining and storing macros, discuss how SAS searches for macros, demonstrate how to specify the appropriate options to allow access to compiled stored macros and define the SASAUTOS search order. The meaty stuff will involve a walk through %list_sasautos, a useful utility macro written by the author, that will identify all of the macros available to your SAS session.

Online materials

See also