?>Array ( [id] => 25 ) Standard Check: Verifying Session Action Sets for Analysis - WeAreCAS
builtins actionSetInfo

Standard Check: Verifying Session Action Sets for Analysis

Scénario de test & Cas d'usage

Business Context

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 'decisionTree' and 'regression', are loaded in their current CAS session to ensure they can build and score models.
Data Preparation

No specific data table is needed. The test setup involves ensuring a specific action set is loaded to simulate a real user session.

Copied!
1/* No data creation needed. We will load an action set to ensure it appears in the results. */

Étapes de réalisation

1
Load a specific action set ('decisionTree') into the current session to prepare the test environment.
Copied!
1PROC CAS;
2 loadactionset 'decisionTree';
3RUN;
4QUIT;
2
Execute the actionSetInfo action with its default settings to list only the action sets loaded in the current session.
Copied!
1PROC CAS;
2 BUILTINS.actionSetInfo RESULT=r;
3 PRINT r.ActionSetInfo;
4RUN;
5QUIT;

Expected Result


The output table should list all action sets currently loaded in the session, including the 'builtins' action set and the 'decisionTree' action set that was explicitly loaded in step 1. This confirms the user can proceed with their analysis.