154 Carpenter’s Complete Guide to the SAS REPORT Procedure
BEFORE and AFTER. This would also be true if there were a COMPUTE AFTER statement; it
would execute last.
Because the report is processed one row at a time from left to right and from top to bottom, you
need to stage events so that information is available when you need it. Primarily this means that if
you need to use a value, that value has to be available in the computed summary information or to
the left on the current row. In fact, this is the sole purpose of the COMPUTE BEFORE
p block.
In our example, on every report row, we need to know the overall number of patient visits in ...
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.