Action Principale : addUserActionSetPath
| 1 | PROC CAS; |
| 2 | /* Paso 1: Crear un conjunto de acciones personalizado */ |
| 3 | SOURCE myActions; |
| 4 | ACTION mySet.myEcho / description="Echo a value"; |
| 5 | define ddf.string p1 / rt="string" desc="Value to echo"; |
| 6 | define ddf.string p2 / rt="string" desc="Another value"; |
| 7 | RESULT = p1 || ' ' || p2; |
| 8 | send_response(RESULT); |
| 9 | endaction; |
| 10 | ENDSOURCE; |
| 11 | |
| 12 | /* Paso 2: Guardar el conjunto de acciones en una caslib */ |
| 13 | BUILTINS.actionSetToTable / |
| 14 | actionSet='mySet' |
| 15 | TABLE={caslib='MyCaslib', name='mySetDef'}; |
| 16 | RUN; |