proc format; value fa 0='A0' 1='A1' 2='A2' 3='A3' other='NA'; value $fb 'male'=1 'female'=2 other=99; run;
proc format lib=l1; value FMT_L1_ 1='a' 2='b' other='na'; invalue INFMT_L1_ 'x'=1 'y'=2 other=.; quit;
proc format lib=l2; value FMT_L2_ 1='c' 2='d' other='na'; invalue INFMT_L2_ 'x'=3 'y'=4 other=.; quit;
proc format lib=l3; value FMT_L3_ 1='e' 2='f' other='na'; invalue INFMT_L3_ 'x'=5 'y'=6 other=.; quit;
proc format; value group 1 = "Control" group 2 = "Treatment"; run;
proc format; value $sequip 'Sports' = 'Sports Equipment'; run;
proc format ; value $gender 'F' = '_Female_' 'M' = '_Male_'; run;
proc format; value type 2="Char" 1 = "Num"; run;
* Create a format to display colors ranging from Blue (cold) to Red (hot) ; data _null_ ; call execute('proc format fmtlib ; value pct_') ; max=1; maxloop=255 ; do i=1 to maxloop ; color='cx'||put(i/maxloop*255,hex2.)||'00'||put((maxloop-i)/maxloop*255,hex2.) ; from=((i-1)/maxloop...
proc format; value $ zodiacSymbol 'Scorpio' = "(*ESC*){unicode '264F'x}" /* NOTE: unicode expects U16BE */ 'Virgo' = "(*ESC*){unicode '264D'x}" 'Gemini' = "(*ESC*){unicode '264A'x}" 'Sagittarius' = "(*ESC*){unicode '2650'x}" 'Leo' = "(*ESC*){unicode '264C'x}" 'Aq...