Action Principale : actionSetFromTable
| 1 | PROC CAS; |
| 2 | BUILTINS.defineActionSet / |
| 3 | name='myCustomActionSet', |
| 4 | actions={ |
| 5 | {name='hello', definition={ |
| 6 | parms={ |
| 7 | {name='name', type='string', description='Name to say hello to'} |
| 8 | }, |
| 9 | code="print('Hello, ' || name)" |
| 10 | }} |
| 11 | }; |
| 12 | RUN; |
| 13 | BUILTINS.actionSetToTable / |
| 14 | actionSet='myCustomActionSet', |
| 15 | TABLE={name='myActionSetTable', caslib='CASUSER', replace=true}; |
| 16 | RUN; |
| 17 | QUIT; |