Features: |
VALUE statement : OTHER keyword |
Data set: | PROCLIB.STAFF |
Format: | USCurrency |
libname proclib 'SAS-library-1'; libname library 'SAS-library-2';
proc format library=library;
value $city 'BR1'='Birmingham UK' 'BR2'='Plymouth UK' 'BR3'='York UK' 'US1'='Denver USA' 'US2'='Miami USA' other='INCORRECT CODE'; run;
proc print data=proclib.staff noobs label;
label salary='Salary in U.S. Dollars';
format salary uscurrency. site $city.;
title 'PROCLIB.STAFF with a Format for the Variables'; title2 'Salary and Site'; run;
value $city 'BR1'='Birmingham UK' 'BR2'='Plymouth UK' 'BR3'='York UK' 'US1'='Denver USA' 'US2'='Miami USA' other='INCORRECT CODE'; run;