Hi guys, I am doing lesson 6 of the Programming 1 course, here I have to create a macro that stores the file path to export destination folder.
however the macro disappears every time I reset my SAS studio session, is there a make the macro permanent?
First thing. That code is not creating a macro. It is creating a macro variable (also called a symbol). A macro is defined by the %MACRO statement.
The answer is NO. There is no such thing.
But you can create an autoexec.sas file that runs every time you start a new SAS session. So you could put code in there that creates the macro variable or does anything else you want to happen every time you start SAS.
First thing. That code is not creating a macro. It is creating a macro variable (also called a symbol). A macro is defined by the %MACRO statement.
The answer is NO. There is no such thing.
But you can create an autoexec.sas file that runs every time you start a new SAS session. So you could put code in there that creates the macro variable or does anything else you want to happen every time you start SAS.
thank you, I will look into autoexec.sas and thanks for the clarification on the terminology.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.