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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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
  • 739 views
  • 0 likes
  • 3 in conversation