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 library=work.formats casfmtlib="casformats" ; value enginesize low -
proc format; value utf8_udf 12 = &udf_v1 13 = &udf_v2 OTHER= [Best6.] ; run;
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...
proc format; value $ResponseFmt 'F'='Favorable' 'U'='Unfavorable'; run;