PROC FORMAT; VALUE cylf 4 = "4 Cylinders" 6 = "6 Cylinders" 8 = "8 Cylinders" ; RUN;
title1 '12.2.2 Working with Fractional Values'; title2 'Showing Decimals'; proc format; picture showval other = '0000'; picture withdec other = '00.0'; picture twodec other = '09.00'; run;
proc format; picture showdec other = '09.00'; run;
proc format; picture showdecr (round) other = '00009.00'; run;
proc format; value $sequip 'Sports' = 'Sports Equipment'; run;
proc format; value $sequip 'Sports' = 'Sports Equipment'; 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 needsveg 0 = "No" 1 = "Yes" ; RUN;
proc format library=work.formats casfmtlib="casformats" ; value enginesize low -
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...