374 Carpenter’s Complete Guide to the SAS REPORT Procedure
In this example, if BMI were to the left of either HEIGHT or WEIGHT on the COLUMN
statement, the calculation of BMI would fail. The following COLUMN statement would not
work:
column age sex n weight bmi height;
The value of HEIGHT (converted or otherwise) would not yet be available for use in the BMI
compute block. In fact, it would be missing altogether, and the user would receive an
“uninitialized variable” error.
11.3.3 Summary Lines and Compute Blocks in the Same
Report
When summary lines are requested in the PROC REPORT step, the summarization itself takes
place in the setup ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.