?>Array ( [lang] => de [id] => 59 )
Scénario de test & Cas d'usage
Erstellung der Caslib für den Ingestionsprozess. Das Verzeichnis '/tmp/caslibs/iot_ingest' muss auf dem CAS-Server existieren.
| 1 | PROC CAS; |
| 2 | caslib iot_ingest path='/tmp/caslibs/iot_ingest'; |
| 3 | RUN; |
| 1 | %macro create_dirs; |
| 2 | %local i start_date current_date dir_name; |
| 3 | %let start_date = %sysfunc(today()); |
| 4 | %DO i = 0 %to 99; |
| 5 | %let current_date = %sysfunc(intnx(day, &start_date, &i)); |
| 6 | %let dir_name = %sysfunc(putn(¤t_date, yymmddn8.)); |
| 7 | PROC CAS; |
| 8 | TABLE.addCaslibSubdir / |
| 9 | caslib='iot_ingest' |
| 10 | path="&dir_name."; |
| 11 | RUN; |
| 12 | %END; |
| 13 | %mend create_dirs; |
| 14 | %create_dirs; |
Die Aktion wird 100 Mal ohne Fehler ausgeführt und erstellt 100 Unterverzeichnisse (z.B. '20251125', '20251126', ...) in der 'iot_ingest'-Caslib. Der Prozess sollte ohne signifikante Leistungseinbußen oder Timeouts abgeschlossen werden. Das Log sollte 100 Erfolgsmeldungen enthalten.