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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 23 replies
  • 2304 views
  • 3 likes
  • 6 in conversation