Creating Enhanced List and Summary Reports |
Defining Variable Usage |
So far, you've selected data for your list report and have defined column attributes and headings. Next, let's look at a more complex PROC REPORT feature: usage for variables in your report. You've seen that you define variable usage in the DEFINE statement. Now you can see how each usage affects the layout of your report and the values that the report contains.
PROC REPORT uses each variable in one of six ways (DISPLAY, ORDER, GROUP, ACROSS, ANALYSIS, or COMPUTED). By default, PROC REPORT uses
Because you haven't explicitly defined any variable usages, your current list report contains only display and analysis variables:
In the illustration below, columns for display variables are shown in white. Columns for analysis variables are shown in gray. |
character |
|
numeric variables (default= ANALYSIS) |
How you use a variable in a report determines, among other things, the order of the rows in your report. Let's see the effect of defining a variable as an order variable. |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.