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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 3 replies
  • 1282 views
  • 5 likes
  • 4 in conversation