builtins

loadActionSet

Description

Loads a CAS action set into the current session, making its actions available for execution. Action sets are groups of related tasks, such as 'simple' for descriptive statistics or 'dataStep' for running DATA step code in CAS. This is a fundamental step for preparing a CAS session for analysis.

builtins.loadActionSet / actionSet="action_set_name";
Settings
ParameterDescription
actionSetSpecifies the name of the action set to be loaded into the current session. This name is case-insensitive.

Examples

This example loads the 'simple' action set, which contains basic data analysis and summarization actions like 'summary' and 'freq'.

SAS® / CAS Code Code awaiting community validation
Copied!
1 
2PROC CAS;
3ACTION BUILTINS.LOADACTIONSET / actionSet='simple';
4 
5RUN;
6 
Result :
A note in the log confirms that the 'simple' action set was successfully loaded. The actions within this set are now available for use in the session.

This example loads the 'dataStep' action set. This is essential for running SAS DATA step code directly on the CAS server for high-performance, in-memory data manipulation.

SAS® / CAS Code Code awaiting community validation
Copied!
1 
2PROC CAS;
3ACTION BUILTINS.LOADACTIONSET / actionSet='dataStep';
4 
5RUN;
6 
7QUIT;
8 
Result :
The log indicates that the 'dataStep' action set is loaded. You can now use the 'dataStep.runCode' action to execute DATA step programs in CAS.

FAQ

What is the purpose of the loadActionSet action?
What is the mandatory parameter for the loadActionSet action?
How is the actionSet parameter specified?
Are there any specific considerations for Python and R clients when loading an action set?