Published on :

SAS Viya CAS Environment Information

This code is also available in: Deutsch Español Français
Attention : This code requires administrator privileges.
The script initializes a CAS session and displays its reference. It then proceeds to assign all available caslibs to the SAS© client, making the libraries accessible. It displays the long version of SAS© and uses the 'listabout' command via the CASAUTO controller, then executes the PROC CAS procedure with the 'about' action to obtain comprehensive information on the status and configuration of the CAS server (such as controllers, workers, component versions, etc.).
Data Analysis

Type : INTERNAL


The script does not use external data or SASHELP tables. It directly queries the metadata and internal state of the SAS Viya CAS environment to collect system information.

1 Code Block
CAS, PROC CAS, macro %put
Explanation :
This code block executes several CAS-related actions:
- `cas;` : Starts or activates a CAS session.
- `%put &_sessref_;` : Displays the current CAS session reference in the SAS log.
- `caslib _all_ assign;` : Assigns all existing caslibs to the current CAS session, making them available to the SAS client.
- `%put &sysvlong4.;` : Displays the long version of SAS (installation and patch information).
- `cas casauto listabout;` : Executes a CAS action to list general information about the CAS server via the CASAUTO controller.
- `proc cas; about; run;` : Uses the CAS procedure to obtain and display detailed information about the CAS environment, including server details, component versions, and available resources.
Copied!
1cas;
2%put &_sessref_;
3caslib _all_ assign;
4%put &sysvlong4.;
5cas casauto listabout;
6PROC CAS;
7about;
8RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Copyright © 2021, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0