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


I do not have any SAS statements to run when the application starts.


Best regards,

Quanshuo
BrianGaines
SAS Employee

@Quanshuo,

 

If that is the case, then the library will not be automatically created each time you open SAS Studio.  So that is why the creation of the library worked the first time, but then it was not there in subsequent sessions.

 

-Brian

Quanshuo
Fluorite | Level 6
I got you.

Thank you again, Brian, I will try the solution about "

Pre-assigning Libraries in an Autoexec File
"


Best regards,

Quanshuo
Quanshuo
Fluorite | Level 6

Hello Brian,

 

Could not figure out how to do 'pre-assigning a library' in the virtual machine.

Do yo have any idea?

 

Thank you,

Quanshuo

BrianGaines
SAS Employee

@Quanshuo,

 

What is the libname statement code that you are using to create the library?  Is it 

libname pg1 '/folders/myfolders/data';

or something else?

 

-Brian

Quanshuo
Fluorite | Level 6
Hello Brian,


It is: LIBNAME score "/folders/myfolders";


Thanks,

Quanshuo
BrianGaines
SAS Employee

@Quanshuo,

 

I see, thank you.  To add it to the Autoexec file, you simply open the Autoexec file and then paste that code in there.  

 

First, access the Autoexec file as described in my previous post in this thread.  Then paste the 

LIBNAME score "/folders/myfolders";

code in there, so it should look like:

autoexecEx.png

 

Next, hit save (in general it can be helpful to hit Run to make sure everything runs correctly).  Now, that statement will be executed each time you open SAS Studio, meaning the score library will automatically be created.

 

Did that work?

 

-Brian

Quanshuo
Fluorite | Level 6

Perfect!!

Thank you, Brian.

 

Quanshuo

mcgannmary
Calcite | Level 5
Thank you, Everyone, for your help. The guidance from you worked.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 23 replies
  • 3214 views
  • 3 likes
  • 6 in conversation