BookmarkSubscribeRSS Feed
Lopa2016
Fluorite | Level 6

Hi,

 

I have multiple macros which I would like to call from one program. But the online support docsthat I looked at says it can be achieved both by autocall & %include. But I am unable to get a clarity on how to use or which will be the best method. 

 

Would be great if someone can help me out with some useful links which takes you through storing a macro & then calling it in a different program.

 

Thanks in advance!!

1 REPLY 1
JuanS_OCS
Amethyst | Level 16

Hello @Lopa2016,

 

You have several options for this! You can give a read to: http://www2.sas.com/proceedings/sugi27/p017-27.pdf and http://support.sas.com/resources/papers/proceedings09/076-2009.pdf

 

The most simple option, and the one you refer at is:

 

filename macdef1
‘c:\mymacros\macdef1.sas’;
........
%include macdef1;
........
%macdef
........

 

You might want to give a read to the Autocall facility (on the 2 papers already mentioned), since it helps a lot to organize collaborative work.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 622 views
  • 1 like
  • 2 in conversation