Scénario de test & Cas d'usage
Simulation of a configuration dataset containing risk parameters.
| 1 | |
| 2 | DATA work.risk_config; |
| 3 | INPUT param_name $20. param_value; |
| 4 | DATALINES; |
| 5 | interest_cap 0.05 max_iterations 1000 risk_weight 1.2 ; |
| 6 | |
| 7 | RUN; |
| 8 |
| 1 | PROC CAS; |
| 2 | TABLE.addCaslib / name="casuser" dataSource={srcType="path"} path="/tmp"; |
| 3 | TABLE.loadTable / caslib="casuser" path="risk_config.sas7bdat"; |
| 4 | RUN; |
| 1 | PROC CAS; |
| 2 | configObject = {scenario="Baseline_2024", settings={cap=0.05, iter=1000, weight=1.2}, timestamp=datetime()}; |
| 3 | BUILTINS.echo / parameters=configObject; |
| 4 | RUN; |
The SAS log displays the structured 'configObject' dictionary, confirming that the CAS session correctly received the complex nested parameters (Scenario name, settings dictionary, and timestamp) prior to execution.