proc format; value $ResponseFmt 'F'='Favorable' 'U'='Unfavorable'; run;
proc format; value cfore low - 21000 = 'white' 21000< - 25000 = 'black' >50000 = 'white'; value cback low - 21000 = 'red' 21000< - 25000 = 'yellow' >50000 = 'green'; run;
proc format; value isodate .="xxxx-xx-xx" OTHER=[yymmdd10.] ; value isotime .="xx:xx:xx" OTHER=[time8.] ; run;
proc format; picture positive low-
PROC FORMAT; VALUE needsveg 0 = "No" 1 = "Yes" ; RUN;
proc format lib=work; value PictName 0 = "&g_sasunitroot./resources/html/ok.png" 1 = "&g_sasunitroot./resources/html/manual.png" 2 = "&g_sasunitroot./resources/html/error.png" OTHER="?????"; value PictNameHTML 0 = "images/ok...
proc format; value ExpFmt 1='High Cholesterol Diet' 0='Low Cholesterol Diet'; value RspFmt 1='Yes' 0='No'; run;
/* Using formats to collapse categories of persdoc and genhealth in order to create a two-by-two table */ proc format; value fpersdoc 0 = "No Personal Doctor" 1-2 = "At Least One Personal Doctor"; value fgenhealth 1-2 = "Excellent, Very Good, or Good" 3-high = "Fair or Poor"; run;
PROC FORMAT library=path1; value whichpath 0 = 'path1' other='big fat problem if not path1'; PROC FORMAT library=path2; value whichpath 0 = 'path2' other='big fat problem if not path2'; RUN;
proc format; value vfmt 0 = 'No Visit' 1 = 'Second Trimester' 2 = 'Last Trimester' 3 = 'First Trimester'; value efmt 0 = 'High School' 1 = 'Some College' 2 = 'College' 3 = 'Less Than High School'; run;