I'm trying to define a program editor macro, but each time, I get the message shown below that no commands were recorded for the macro. As a sample, I have tried selecting Program->Editor Macros->Record New and then 1) selecting the Save command on the program tab or 2) highlighting a block of text, and then selecting Program->Editor Macros->Record New Stop Recording, and several other command series. But I always get the message below. I am able to successfully modify Editor Options such as tabs etc. Am I doing something wrong? Is some file or folder set to read-only and is preventing the commands from being stored?
Hi @DDutton,
Not all operations can be executed (thus recorded) as commands in a macro. The two operations you provided (saving and selection via *mouse*) are examples.
You can see a full list of the commands supported in a macro by clicking Program > Editor Macros > Macros, then click the Create button.
You'll notice there are quite a few selection commands (a whole category). If you perform selections via the keyboard rather than the mouse while recording a macro, they will be recorded and can be replayed in a macro.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.