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.