Hi I am doing SAS Programming 1 course, currently on learning how to create library with LIBNAME.
I ran the following code and it generated a pg1 library under "My Libraries" as shown
libname pg1 "/home/u62043935/EPG1V2/data"; run;
However, when I sign out of SAS Studio and sign back in, pg1 library disappears and I have to ran the code every time I sign in.
Is there a way to make the pg1 library permanent in SAS Studio?
thanks
@Nietzsche wrote:
However, when I sign out of SAS Studio and sign back in, pg1 library disappears and I have to ran the code every time I sign in.
That is default and expected behaviour.
Is there a way to make the pg1 library permanent in SAS Studio?
thanks
If you create the library via the GUI you can check the box to "Persist this library beyond the current session". Or you can copy your library code and put it in your AutoExec file so that it runs every time you start SAS.
Instructions are here:
https://documentation.sas.com/doc/en/webeditorcdc/v_002/webeditorug/n1rxiyysdwthokn1c9szd5175pmh.htm
@Nietzsche wrote:
However, when I sign out of SAS Studio and sign back in, pg1 library disappears and I have to ran the code every time I sign in.
That is default and expected behaviour.
Is there a way to make the pg1 library permanent in SAS Studio?
thanks
If you create the library via the GUI you can check the box to "Persist this library beyond the current session". Or you can copy your library code and put it in your AutoExec file so that it runs every time you start SAS.
Instructions are here:
https://documentation.sas.com/doc/en/webeditorcdc/v_002/webeditorug/n1rxiyysdwthokn1c9szd5175pmh.htm
can you create SAS library via GUI is SAS Studio?
Yes click the SAS Studio User Interface link on this linked page to see step by step instructions.
|
Show instructions for creating a SAS library with: SAS code | SAS Studio user interface |
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.