BookmarkSubscribeRSS Feed
mftuchman
Quartz | Level 8

Please note: This is not about editor Macros or abbreviations.   I am NOT interested any editor-based abbreviation or editor -macro solution to this.  (Although they are admittedly helpful, that's out of scope).

 

I have a number of macros defined, that are loaded in autoexec process flow.  As of version 7.15 HF3 (7.100.5.6132) (32-bit), I am not seeing my macros autocomplete when I type in their name in the editor.   Also:

 

  1. Autocomplete is already turned on via the tools > Editor Options menu path.
  2. I use "third character" autocomplete

 As an example, I have

%macro meantable(x= /* data table */,y=/* statistics used */,z=/* version  */); 

...<stuff>

%mend;

 

I would like to type %mea and have the word %meantable (and any other macros defined that start with  the characters mea) appear in the editor.  After I type in the open paren, I'd like to see the integrated documentation for x,y, and z.

 

Currently this is not happening. 

2 REPLIES 2
ChrisHemedinger
Community Manager

Hi @mftuchman,

 

Currently, the editor offers syntax suggestions only for SAS macros that are defined within the current editor view (your open program).  While the editor does scan the SAS environment for possible libnames, data sets, and variable names, it does not scan the macro function table nor the SASAUTOS path for potential macros you could call.

 

I'm not sure if that's on the roadmap -- knowing a bit of the internals, I'd say it's a tricky one to solve.  But perhaps someone from the dev team can chime in.

 

Chris

SAS Innovate 2025: Call for Content! Submit your proposals before Sept 16. Accepted presenters get amazing perks to attend the conference!
mftuchman
Quartz | Level 8
Good point - calling them syntax suggestions makes it clearer what I mean.
Now, it is possible to get syntax suggestions for system macros such as
%sysevalf, so why not user-defined ones? Since I like to auto source my
macros, they would lie in a different directory than my main SAS code.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 864 views
  • 1 like
  • 2 in conversation