Solved
Contributor
Posts: 65

# Call Macros without compiling them - Macro Library

I want to find a way to be able to run macros without compiling them first, Currently I've been using the typical autocall and library method:

``````options mautosource sasautos=MacLib;

filename MacLib "C:\Users\Your.Name.Here\Documents\Engine\Macro_Library";``````

The macros are saved in that file path folder with the names matching the macro e.g.

``````MacroOne.Sas

%MacroOne;``````

However, I just can't seem to get them to run. How can I make it such that I can run macros and not have to compile before starting a session?

Accepted Solutions
Solution
‎03-23-2018 12:44 PM
Super User
Posts: 10,571

## Re: Call Macros without compiling them - Macro Library

Define the filename first, then use it in the options.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

All Replies
Solution
‎03-23-2018 12:44 PM
Super User
Posts: 10,571

## Re: Call Macros without compiling them - Macro Library

Define the filename first, then use it in the options.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 65