Hi all,
I am part of a research-group where we look at data from a specific patient-group. Often we have to calculate scores, measures etc based on the same type raw-data. Therefore macros are essential to us and we use them frequently. But it could be made a lot easier:
When you invoke a function/macro that is defined by SAS-itself, you get a tooltip/help box. If you define a custom macro, in that same program, you will get a tooltip as well:
But this doesn't happen if you load the macros with the %include-function (which we often do).
Is there a way to make this help-text/tooltip visible to make input easier?
Thanks in advance for your help!
I'm afraid you can't; the editor can only "see" what it has in the editing buffer, or what it "knows" from prior knowledge (about the predefined macros). Since all it "sees" is the %include statement, it does not know what's in the file; it is as if you used a call to a macro that does not yet exist, but which you plan to write later.
I am not familiar with the tooltip function, but you could try submitting the %INCLUDE statements that define the macros, so that SAS knows them. Or perhaps move the macros to an autocall (SASAUTOS) folder, instead of using %INCLUDE.
It is interesting that tooltips appear for SAS-issued macros. If you get no answer here, ask tech support what mechanism is used for this to happen. Maybe you can leverage that mechanism.
Thanks for all your answers 🙂
I hoped for a simple solution other than running the macro in each program-instance. The SAS-autocall might be a solution, but seems a bit too technical for me to grapple with at the moment.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.