BookmarkSubscribeRSS Feed
fabioce
Calcite | Level 5

I'm new in SAS programming and we have a SAS procedure with different call to macros. we need to find those macros and we don't know how to do. any sugestions?

 

thanks

3 REPLIES 3
Kurt_Bremser
Super User

Inspect your SASAUTOS= system option:

proc options option=sasautos;
run;

so you can search these locations for probable stored macro code files.

If you don't find them there, inspect the SASHELP.VCATALG table (objtype = "MACRO") to find macros stored in permanent catalogs.

All others have to be found in files that were included with %INCLUDE somewhere (might be in your SAS "startup" code, meaning autoexec files or codes sent automatically by Studio or EG).

Patrick
Opal | Level 21

If these are so called Autocall macros then you can also use....

options mautolocdisplay;

...at the beginning of your program. This will print the location of the source code for the macro into the SAS log whenever you call it.

https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/mcrolref/p04o0tz0t7g88in1mqlh27hj7wgn.htm 

Ksharp
Super User
%let path=%sysfunc(pathname(sasautos));

%put &path ;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 1494 views
  • 5 likes
  • 4 in conversation