BookmarkSubscribeRSS Feed
thomasu
Calcite | Level 5

I amusing SODA. When I create a new library

 

LIBNAME CHAPTER2  '/home/u61184402/Chap2';
DATA CHAPTER2.NEWDATA;
SET WORK.DATA;

 

the library is visible. I thought it is a permanent library.

 

When I logoff and the next time I do a logon, the library CHAPTER2 is no longer available. So how can I make the library really a permanent library that exists even when I start a new session.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

In the new session, you have to run the LIBNAME statement (the exact same LIBNAME statement you used in the previous session).

--
Paige Miller
Kurt_Bremser
Super User

The directory is permanent, but not your library definition for it. To make that permanent, you need to add the LIBNAME statement to your autoexec.  SAS Studio provides that in its settings.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 592 views
  • 0 likes
  • 3 in conversation