BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
34reqrwe
Quartz | Level 8

We are running Sas studio on Viya - I would like to know how to define libnames such that when users login they are predefined. 

Similar to defining them in metadata .

The option we are using at the moment is defining them in the autoexec. Is there a better way ? 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
34reqrwe
Quartz | Level 8

I received below answer from TS:

SAS Studio is very much like the SAS Display Manager environment if you are not using CAS in that you need to assign the LIBNAME statements either in your code or in the autoexec file

View solution in original post

5 REPLIES 5
SASKiwi
PROC Star

Yes, defining these in SAS metadata is best practice in my opinion. You then get the ability to use metadata permissions as well. I'm assuming this capability is available in SAS Viya though.

34reqrwe
Quartz | Level 8

thanks - but no , its not available as far as I know

SASKiwi
PROC Star

Do you just have a pure Viya environment then with SAS Studio 4.x?

34reqrwe
Quartz | Level 8

Yes that's right. You can still run base SAS from sas studio and refer to libnames etc. I don't know if there is a better way that defining the libnames in the autoexec, but it has the disadvantage of needing to have the (encrypted) passwords in the file .

34reqrwe
Quartz | Level 8

I received below answer from TS:

SAS Studio is very much like the SAS Display Manager environment if you are not using CAS in that you need to assign the LIBNAME statements either in your code or in the autoexec file

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
  • 5 replies
  • 1021 views
  • 0 likes
  • 2 in conversation