proc format; value cfore low - 21000 = 'white' 21000< - 25000 = 'black' 75000 - high = 'white'; value cback low - 21000 = 'red' 21000< - 25000 = 'yellow' 75000 - high = 'green'; run;
proc format; value agefmt 20-30 = "20 (*ESC*){unicode '2264'x} 30" 31-40 = "31 (*ESC*){unicode '2264'x} 40" 41-50 = "41 (*ESC*){unicode '2264'x} 50" 51-60 = "51 (*ESC*){unicode '2264'x} 60" 61-70 = "61 (*ESC*){unicode '2264'x} 70" ; run;
proc format; value agefmt 20-30 = "20 (*ESC*){unicode '2264'x} 30" 31-40 = "31 (*ESC*){unicode '2264'x} 40" 41-50 = "41 (*ESC*){unicode '2264'x} 50" 51-60 = "51 (*ESC*){unicode '2264'x} 60" 61-70 = "61 (*ESC*){unicode '2264'x} 70"; run;
proc format lib=local; value FMTA 1='a' 2='b' other='na'; value $FMTB '1'='a' '2'='b' other='na'; invalue FMTC 'x'=1 'y'=2 other=.; invalue $FMTD 'x'='a' 'y'='b' other='na'; quit;
proc format; value readdate 1='date7.' 2='mmddyy8.'; run;
proc format; value typefmt 1='$groupx' 2='$groupy' 3='$groupz'; invalue $groupx 'positive'='agree' 'negative'='disagree' 'neutral'='notsure'; invalue $groupy 'positive'='accept' ...
proc format; value cfore low - 21000 = 'white' 21000< - 25000 = 'black' 75000 - high = 'white'; value cback low - 21000 = 'red' 21000< - 25000 = 'yellow' 75000 - high = 'green'; run;
proc format; value cfore low - 21000 = 'white' 21000< - 25000 = 'black' 75000 - high = 'white'; value cback low - 21000 = 'red' 21000< - 25000 = 'yellow' 75000 - high = 'green'; run;
/*--------------------------------------------------------------------------------------* Copyright 2017, Rho, Inc. All rights reserved. PROGRAM: list2format PURPOSE: Create a numeric format based on a list of values. INPUT: fmtname= format name list= ...
proc format ; value $gender 'F' = '_Female_' 'M' = '_Male_'; run;