DATA Step, Macro, Functions and more

Locating path for a macro variable

Reply
Frequent Contributor
Posts: 131

Locating path for a macro variable

I have been assigned to troubleshoot why a program will not run.  I know the issue.  It is an email script that is housing too many emails.

Sample error message

Email address:marcsmith@yahoo.com   jansmith@yahoo.com.......etc

is too long  256 character limit

The macro looks like this

%email_out(110,msglist,);

I am trying to locate the path for the above macro to modify or remove some of the email addresses.  The program references the location however this macro is no where to be found.  Is there a code that gives location for macro, much like option symbolgen gives descriptive information?

Super User
Posts: 17,784

Re: Locating path for a macro variable

It's probably in an AutoCall Library.

See the options to find the macro in the paper below.

http://analytics.ncsu.edu/sesug/2005/AD07_05.PDF

Super User
Super User
Posts: 6,498

Re: Locating path for a macro variable

Try setting MAUTOLOCDISPLAY option.

SAS(R) 9.2 Macro Language: Reference

Valued Guide
Posts: 2,174

Re: Locating path for a macro variable

When debugging macros I use

OPTION MLOGIC MPRINT SYMBOLGEN MLOGICNEST ;

Without these options set, debugging macros remains guesswork.

MLOGIC has the added convenience that it reports from where an autocall macro had been loaded ( like mautolocdisplay).

Ask a Question
Discussion stats
  • 3 replies
  • 223 views
  • 0 likes
  • 4 in conversation