DATA Step, Macro, Functions and more

SAS library deleted on restart

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

SAS library deleted on restart

Everytime I start SAS I have to again run below command to generate SAS library mysassg.?

 

libname mysassg "U:\SAS\SAS_data";
run;

 

Can I permanetly create it?


Accepted Solutions
Solution
‎03-03-2016 07:26 PM
Super User
Posts: 10,490

Re: SAS library deleted on restart

There are a couple of options depending on your set up. If this is base SAS you could either create an Autoexec.SAS program file and have the configuration file point to that. Any code in the autoexec executes when SAS starts.

 

Another approach is to use the Tools>New Library wizard, enter the path and name information and check the box "enable at startup".

View solution in original post


All Replies
Super User
Posts: 17,795

Re: SAS library deleted on restart

Yes, but you have to either do it through the point and click, and click the enable at start up button 

OR

Modify your autoexec file to include the library reference. Depending on your environment it may be locked down.

 

 

Solution
‎03-03-2016 07:26 PM
Super User
Posts: 10,490

Re: SAS library deleted on restart

There are a couple of options depending on your set up. If this is base SAS you could either create an Autoexec.SAS program file and have the configuration file point to that. Any code in the autoexec executes when SAS starts.

 

Another approach is to use the Tools>New Library wizard, enter the path and name information and check the box "enable at startup".

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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