Action Principale : combineFmtLibs
| 1 | PROC FORMAT; |
| 2 | value $originfmt 'Asia' = 'Asia'; |
| 3 | 'Europe' = 'Europe'; |
| 4 | 'USA' = 'USA'; |
| 5 | RUN; |
| 6 | |
| 7 | PROC FORMAT; |
| 8 | value typefmt 1 = 'Sedan'; |
| 9 | 2 = 'Truck'; |
| 10 | other = 'Other'; |
| 11 | RUN; |
| 12 | |
| 13 | PROC FORMAT lib=work cntlout=originfmt_tbl; |
| 14 | select $originfmt; |
| 15 | RUN; |
| 16 | |
| 17 | PROC FORMAT lib=work cntlout=typefmt_tbl; |
| 18 | select typefmt; |
| 19 | RUN; |
| 20 | |
| 21 | DATA casuser.originfmt_tbl; |
| 22 | SET originfmt_tbl; |
| 23 | RUN; |
| 24 | |
| 25 | DATA casuser.typefmt_tbl; |
| 26 | SET typefmt_tbl; |
| 27 | RUN; |
| 28 | |
| 29 | PROC CAS; |
| 30 | sessionprop.addFmtLib / |
| 31 | fmtLibName='originlib' |
| 32 | TABLE={caslib='casuser', name='originfmt_tbl'} |
| 33 | replace=true; |
| 34 | RUN; |
| 35 | |
| 36 | sessionprop.addFmtLib / |
| 37 | fmtLibName='typelib' |
| 38 | TABLE={caslib='casuser', name='typefmt_tbl'} |
| 39 | replace=true; |
| 40 | RUN; |
| 41 | QUIT; |