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

I succeeded created a file in “my libraries’” using libname statement, but the file disappeared after I logged off SAS studio?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

@superbibi wrote:

Do you mean I have to run the libname statment each time I open SAS to let the file in "my libaries"? 


Yes, or you can add them to your autoexec to have them set up whenever you initialize SAS.  You can access the autoexec from the menu at the top right hand corner. 



Does it mean all the files created in "my libraries" is not permanent stored in "my libraries"? 

No, the files are still there even if the libname isn't. A libname is a pointer to a directory (or file) and the directory still exists. 

View solution in original post

4 REPLIES 4
Shmuel
Garnet | Level 18

The file did not disapear.

Recreate your libname statment and save it as a program;

Run it firstly after initiating SAS. You will find the file in the library.

 

superbibi
Obsidian | Level 7

Thank you Shmuel. I know the file is still in "my file". But it is not in "my libraries". Do you mean I have to run the libname statment each time I open SAS to let the file in "my libaries"? Does it mean all the files created in "my libraries" is not permanent stored in "my libraries"? 

Reeza
Super User

@superbibi wrote:

Do you mean I have to run the libname statment each time I open SAS to let the file in "my libaries"? 


Yes, or you can add them to your autoexec to have them set up whenever you initialize SAS.  You can access the autoexec from the menu at the top right hand corner. 



Does it mean all the files created in "my libraries" is not permanent stored in "my libraries"? 

No, the files are still there even if the libname isn't. A libname is a pointer to a directory (or file) and the directory still exists. 

superbibi
Obsidian | Level 7

Thank you.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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