?>Array ( [id] => 26 ) Performance & Admin: Generating a Full Inventory of All Available Server Action Sets - WeAreCAS
builtins actionSetInfo

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

Scénario de test & Cas d'usage

Business Context

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 currently in use. This inventory is used for license compliance, version tracking, and identifying unused or outdated components.
Data Preparation

This scenario does not require any data tables. The focus is on the system-level capability of the action.

Copied!
1/* No data preparation is required for a server-wide inventory check. */

Étapes de réalisation

1
Execute the actionSetInfo action with the 'all' parameter set to TRUE to request a comprehensive list of all installed action sets.
Copied!
1PROC CAS;
2 BUILTINS.actionSetInfo / all=TRUE RESULT=r;
3RUN;
4QUIT;
2
Save the complete inventory to a persistent CAS table for auditing and reporting purposes.
Copied!
1PROC CAS;
2 TABLE.promote / name='ActionSetInfo' casout={name='SERVER_ACTION_SET_INVENTORY', caslib='CASUSER', replace=true};
3RUN;
4QUIT;

Expected Result


The action should produce a large table containing every single action set available on the CAS server, with a boolean flag indicating whether each one is currently loaded or not. The resulting 'SERVER_ACTION_SET_INVENTORY' table in the CASUSER caslib will serve as the audit artifact.