Looking for schooling on creating/saving and then using userdefined macros SPECIFICALLY IN the SAS Studio online app.
I understand macros in general, and not looking for help on the code within a macro. Am asking for help using SAS Studio online.
UPDATE: So basically the answer is the macro can be put where you want in the folders. My experience with the folder structure and creating folders, choosing folders etc to be quirky. But I have extremely slow Internet, so...eh
I found it easiest to put the macro in my default user folder, and it is successfully referenced like this:
%include '/home/u12345678/sasuser.v94/YourMacroName.sas';
where the 12345678 would be your individual user number, I reckon.
Thanks for everyone's help.
You can put the macros in an folder you would like, I have a folder named Macros; and I make that folder part of the Autocall library and then OPTIONS SASAUTOS=() allows you to use any macro in the Autocall library simply by calling the macro.
If you don't know the names of the folders used by SAS Studio, you can right click on any folder that is shown, and work out the folder name from the Properties. If you want to create a new folder, you could right-click on "My Folders" and select New->Folder. Basic stuff that is relatively the same in just about any user-interface.
SAS Studio is a web app, and therefore "online" by definition. Do you mean SAS On Demand?
In any case, save just like any other program file, and %include from there.
You can save macro code in .sas files, and use %include to include them where needed. Or save them to the autocall library.
You can put the macros in an folder you would like, I have a folder named Macros; and I make that folder part of the Autocall library and then OPTIONS SASAUTOS=() allows you to use any macro in the Autocall library simply by calling the macro.
If you don't know the names of the folders used by SAS Studio, you can right click on any folder that is shown, and work out the folder name from the Properties. If you want to create a new folder, you could right-click on "My Folders" and select New->Folder. Basic stuff that is relatively the same in just about any user-interface.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.