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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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