Scénario de test & Cas d'usage
Konfiguration von Sitzungseigenschaften.
Entdecken Sie alle Aktionen von sessionPropErstellung einer Bibliothek 'legacy_logs', die nur Standard-Fehlercodes enthält, aber keine Hardware-Codes.
| 1 | |
| 2 | PROC FORMAT; |
| 3 | value err_code 404='Nicht gefunden' 500='Serverfehler'; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | PROC CASUTIL; |
| 8 | save casdata='work.formats' casout='legacy_logs' replace; |
| 9 | |
| 10 | RUN; |
| 11 | |
| 12 | PROC CAS; |
| 13 | sessionProp.addFmtLib / fmtLibName='legacy_logs' caslib='casuser' name='legacy_logs'; |
| 14 | |
| 15 | RUN; |
| 16 |
| 1 | |
| 2 | PROC CAS; |
| 3 | sessionProp.combineFmtLibs / fmtLibOut="migrated_logs" fmtLibsIn={"legacy_logs"} formatNames={"err_code", "hw_err"} ignoreNameNotFound=TRUE; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | /* Prüfung erfolgt im Log - RC sollte 0 sein */ PRINT _status; |
| 2 |
Die Aktion wird ohne Fehler abgeschlossen (RC=0), obwohl 'hw_err' in der Quellbibliothek fehlt. Die resultierende Bibliothek 'migrated_logs' enthält das vorhandene Format 'err_code'. Das Fehlen von 'hw_err' wird ignoriert.