Hi everyone, I submitted the following code onto a program in SAS ODA account: Data new; set cert.input44; drop bp_status weight_status smoking_status; if cholesterol=. then chol_status=.; else if cholesterol<200 then chol_status=1; else if 200<=cholesterol<=239 then chol_status=2; else if cholesterol>=240 then chol_status=3; run; proc format; value chol_status 1="Safe" 2="High to Borderline" 3="High"; run; proc freq data=new; table chol_status; format chol_status cholcat.; run; This exactly follows the structure of examples that have worked for me before. However, this time when I run the proc freq step, the "Safe" "High to Borderline" and "High" formats are not applied to the output, and I'm not sure why that is. How could I make sure my formats are correctly applied? Help would be much appreciated. Thank you!
... View more