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.
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.