Scénario de test & Cas d'usage
Configuration of session properties.
Discover all actions of sessionPropCreate two distinct format libraries in the CAS session: 'RegionEast' and 'RegionWest', each containing specific branch code formats.
| 1 | PROC FORMAT casfmtlib='RegionEast'; |
| 2 | value $eastbr 'E01'='New York Main' 'E02'='Boston Hub'; |
| 3 | RUN; |
| 4 | PROC FORMAT casfmtlib='RegionWest'; |
| 5 | value $westbr 'W01'='Los Angeles Main' 'W02'='Seattle Hub'; |
| 6 | RUN; |
| 1 | PROC CAS; |
| 2 | sessionProp.combineFmtLibs RESULT=r STATUS=rc / |
| 3 | fmtLibsIn={"RegionEast", "RegionWest"}, |
| 4 | fmtLibOut="GlobalFmts"; |
| 5 | PRINT r; |
| 6 | RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | sessionProp.listFmtLibs fmtLibName="GlobalFmts"; |
| 4 | RUN; |
| 5 |
The action completes successfully (rc=0). A new format library named 'GlobalFmts' is available in the session, containing both '$eastbr' and '$westbr' formats. The original libraries remain unchanged.