BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
walterwang
Obsidian | Level 7

What is the best way to share sas macro in different projects?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

1. Place all your macros needed into a single SAS program

2. Call using %include

 

%include 'c:\users\demo.sas';

View solution in original post

3 REPLIES 3
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

Write them as called procedures and then use the include statement to execute the marco.

 

walterwang
Obsidian | Level 7

any example?

Reeza
Super User

1. Place all your macros needed into a single SAS program

2. Call using %include

 

%include 'c:\users\demo.sas';
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1471 views
  • 0 likes
  • 3 in conversation