BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
KlemenVrhovec
Fluorite | Level 6

We have a SAS Viya server. It is already configured and I can see our companies data (sql tables) in SAS Environment Manager under Data -> Data Sources. I can also preview it in Environment manager.

 

The next step is I want to access this data with SAS code, from SAS Studio. The issue is that inside SAS Studio -> SAS Libreries I only see default libraries. How do I access tables I see in Environment manager?

 

This is what I see in SAS Studio

KlemenVrhovec_0-1744110319269.png

 

And in SAS environment I see cas-shared-default which inclueds multiple tables I want to access through SAS Studio

KlemenVrhovec_2-1744110416916.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
DJongman
Obsidian | Level 7

By default, cas libraries will not be shown. First you will need to set up a cas session.

cas;

(this line creates a cas session named casauto.) Also note that the standard selected cas-library is casuser. You can change this with options and or parameters

 

The CAS libraries are not yet displayed.
Use the following code to assign all available cas - libraries

 

caslib _all_ assign;

this line assignes all available cas - libraries

 

DJongman_0-1744615558084.png

 



After that, you can load data into cas with proc casutil.

View solution in original post

2 REPLIES 2
DJongman
Obsidian | Level 7

By default, cas libraries will not be shown. First you will need to set up a cas session.

cas;

(this line creates a cas session named casauto.) Also note that the standard selected cas-library is casuser. You can change this with options and or parameters

 

The CAS libraries are not yet displayed.
Use the following code to assign all available cas - libraries

 

caslib _all_ assign;

this line assignes all available cas - libraries

 

DJongman_0-1744615558084.png

 



After that, you can load data into cas with proc casutil.

KlemenVrhovec
Fluorite | Level 6
Thank you. This is the solution I was searching for

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Discussion stats
  • 2 replies
  • 488 views
  • 1 like
  • 2 in conversation