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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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