?>Array ( [id] => 27 )
Scénario de test & Cas d'usage
This scenario simulates the existence of a custom action set. No data table is needed.
| 1 | /* This scenario assumes a custom action set 'customAnalytics' has been deployed to the server but is not yet loaded in the current session. */ |
| 1 | PROC CAS; |
| 2 | BUILTINS.actionSetInfo RESULT=r; |
| 3 | create TABLE CASUSER.LoadedSets as select * from r.ActionSetInfo where upcase(name) = 'CUSTOMANALYTICS'; |
| 4 | RUN; |
| 5 | QUIT; |
| 1 | PROC CAS; |
| 2 | BUILTINS.actionSetInfo / all=TRUE RESULT=r_all; |
| 3 | create TABLE CASUSER.AvailableSets as select * from r_all.ActionSetInfo where upcase(name) = 'CUSTOMANALYTICS'; |
| 4 | RUN; |
| 5 | QUIT; |
| 1 | PROC CAS; |
| 2 | loadactionset 'customAnalytics'; |
| 3 | BUILTINS.actionSetInfo RESULT=r_final; |
| 4 | PRINT r_final.ActionSetInfo where upcase(name) = 'CUSTOMANALYTICS'; |
| 5 | RUN; |
| 6 | QUIT; |
The first step should yield an empty result. The second step should produce a table ('AvailableSets') with one row for 'customAnalytics', showing it is available but not loaded. The final step should successfully load the action set and the printed output should show 'customAnalytics' as loaded. This validates the deployment and the script's logic.