Scénario de test & Cas d'usage
Create a single valid caslib. No action set is needed as the focus is on the path management itself.
| 1 | /* Create a single valid directory and caslib */ |
| 2 | %sysexec mkdir -p /cas/ |
| 3 | DATA/casuser/valid_path; |
| 4 | LIBNAME my_valid_caslib cas caslib='/cas/ |
| 5 | data/casuser/valid_path'; |
| 6 |
| 1 | PROC CAS; |
| 2 | /* This should produce a clear error in the log */ |
| 3 | BUILTINS.addUserActionSetPath / caslib='nonexistent_caslib'; |
| 4 | RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | BUILTINS.addUserActionSetPath / caslib='my_valid_caslib'; |
| 4 | RUN; |
| 5 |
| 1 | PROC CAS; |
| 2 | /* This should be handled gracefully, likely with a note or warning, but not an error */ |
| 3 | BUILTINS.addUserActionSetPath / caslib='my_valid_caslib'; |
| 4 | RUN; |
The first step fails with a specific error message indicating the caslib 'nonexistent_caslib' could not be found. The second step succeeds, adding the valid path. The third step, which adds a duplicate path, completes without raising an error, demonstrating idempotent behavior. The session remains active and stable throughout.