Example 2.7. Presenting Multiple Observations per Report Row

Goal

Present in one row data from more than one observation. Use the values of a grouping variable to select the observations to present in one row.

Analyze specific variables within a row and present the results in computed columns in the report. Some of the calculations will be derived from the multiple observations in the row.

Report

                         Exercise Program Results

                                             Chol/
  Chol/
          Study  Pre Program   Post Program   HDL 
   HDL    Chol/HDL
 Gender      ID   Chol    HDL   Chol    HDL   Pre 
 Post Change Males 1005 296 47 ...

Get SAS® Guide to Report Writing: Examples, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.