BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
CASLU
Fluorite | Level 6

Hello, 

 

Yesterday I created two new libraries with the below code, after first creating these folders on my C-drive:

 

libname MMMdata 'C:\MMMdata';

 and

libname Amadata 'C:Amadata';

 

They were there yesterday after I created them; however, today when I turned on my computer and opened SAS, they do not appear in my library window. They do, however, show up from my windows file explorer. How can I get these libraries to show up again within SAS?

 

Thank you in advance!!

1 ACCEPTED SOLUTION

Accepted Solutions
SuryaKiran
Meteorite | Level 14

If your using SAS EG then go to Tools>Options>SAS Programs. Check mark "Submit SAS Code when server is connected" and go to edit and past your LIBNAME code there and save. This code runs when ever you open SAS EG.

Thanks,
Suryakiran

View solution in original post

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

You have to assign the libraries again if you closed SAS in the meantime.

 

Reeza
Super User

Rather than the libname use the GUI to create the libraries. When you do, there's a checkbox to click to allow it to persist across sessions. As far as I know, there isn't a way to set that up via code. 

 

 

SuryaKiran
Meteorite | Level 14

If your using SAS EG then go to Tools>Options>SAS Programs. Check mark "Submit SAS Code when server is connected" and go to edit and past your LIBNAME code there and save. This code runs when ever you open SAS EG.

Thanks,
Suryakiran
CASLU
Fluorite | Level 6
Thank you!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 3079 views
  • 3 likes
  • 4 in conversation