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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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