Action Principale : addFmtLib
| 1 | PROC FORMAT; |
| 2 | value $genderfmt 'M'='Male' 'F'='Female'; |
| 3 | value agefmt 1-12='Child' 13-19='Teen' 20-64='Adult' 65-high='Senior'; |
| 4 | RUN; |
| 5 | |
| 6 | /* Create a control data set from the formats */ |
| 7 | LIBNAME mycas cas; |
| 8 | DATA mycas.myformats_table; |
| 9 | SET sashelp.vformat; |
| 10 | where fmtname in ('GENDERFMT', 'AGEFMT'); |
| 11 | RUN; |