Hi: If your CHOL variable is numeric, then you are referencing the variable incorrectly in your COMPUTE block. Remember that the default usage for a numeric variable is ANALYSIS with a default statistic of SUM. Inside a COMPUTE block when you are using a numeric variable in code, you need to use the compound name: variable.statistic so that PROC REPORT knows which value to use in the comparison. In this case, I would expect that CHOL.SUM might work instead of just referring to CHOL in your IF statement. Also, I wonder at your GROUP usage for GENDER and AGEGROUP and whether they might be impacting your values for CHOL and WBC because the default behavior of GROUP would cause your values for CHOL and WBC to be summarized. In addition, you have WBC listed twice, once with a usage of ANALYSIS/SUM and last with a usage of DISPLAY. So it seems like there are some possible issues to clean up in your code. Also, specifying WIDTH=8 is a setting that is ignored for ODS destinations. I'm also curious about the usage for SUBJECT, if it is Character, the default usage would be DISPLAY, but it appears to be NUMERIC, in which case, I'm not sure what purpose SUBJECT is serving on this report. Are there any WARNINGS or ERRORS in your SAS Log? Cynthia
... View more