DATA Step, Macro, Functions and more

Call Macros without compiling them - Macro Library

Accepted Solution Solved
Reply
Contributor
Posts: 65
Accepted Solution

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: 9,582

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

View solution in original post


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

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

Re: Call Macros without compiling them - Macro Library

Posted in reply to KurtBremser

Thanks, no wonder I thought I was going mad, it was working before.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 87 views
  • 0 likes
  • 2 in conversation