?> actionSetInfo - WeAreCAS
builtins

actionSetInfo

Description

The actionSetInfo action is part of the built-in action set in SAS Viya. It is used to display build and version information for loaded CAS action sets. This is particularly useful for administrators and developers to verify the versions of the action sets currently in use in a CAS session, which can be crucial for debugging, ensuring compatibility, and managing the environment. By default, it lists only the action sets loaded in the current session, but it can also be used to list all action sets available on the server.

builtins.actionSetInfo <result=results> <status=rc> / all=TRUE | FALSE;
Settings
ParameterDescription
allWhen set to True, the results include all the available action sets as well as loaded action sets. This action runs more slowly when set to True.
Data Preparation
No Data Creation Needed

This action does not require any specific data to be created beforehand, as it operates on the server's metadata about action sets.

/* No data creation is necessary for this action. */

Examples

This example demonstrates the default behavior of the actionSetInfo action. It retrieves a list of all action sets that are currently loaded into the active CAS session, along with their build information.

SAS® / CAS Code
Copied!
1BUILTINS.actionSetInfo;
Result :
The action returns a result table containing details for each loaded action set, such as its name, version, and build date. This helps in quickly checking the currently active components.

This example uses the 'all' parameter set to TRUE. This modifies the action's behavior to list not only the currently loaded action sets but all action sets that are installed and available on the CAS server. This is useful for discovering the full range of capabilities of the server.

SAS® / CAS Code
Copied!
1BUILTINS.actionSetInfo / all=TRUE;
Result :
The output is a comprehensive table listing all available action sets. For each action set, it indicates whether it is currently loaded and provides its build information. This is particularly useful for system administrators for a complete inventory.

FAQ

What is the purpose of the builtins.actionSetInfo action?
What does the 'all' parameter do in the actionSetInfo action?
What is the default value for the 'all' parameter?

Associated Scenarios

Use Case
Standard Check: Verifying Session Action Sets for Analysis

A Data Scientist is starting a new project to analyze customer churn. Before starting, they need to confirm that the necessary action sets for predictive modeling, such as 'deci...

Use Case
Performance & Admin: Generating a Full Inventory of All Available Server Action Sets

A SAS Viya Administrator is conducting a quarterly audit of the CAS server. They need to generate a complete report of every action set installed on the server, not just those c...

Use Case
Edge Case & Automation: Automated Deployment Validation Script

A DevOps team is automating the deployment and validation of a new, custom-developed action set named 'customAnalytics'. The validation script must programmatically check if thi...