Chapter Contents |
Previous |
Next |
The REPORT Procedure |
Path |
Edit | Define |
Note: Alternatively, double-click
on the selected item. (Not all operating
environments support this method of opening the DEFINITION
window.)
Description |
Usage |
In the windowing environment, you add a computed variable to a report from the COMPUTED VAR window.
Attributes |
If none of these is present, PROC REPORT uses BESTw. for numeric variables and $w. for character variables. The value of w is the default column width. For character variables in the input data set, the default column width is the variable's length. For numeric variables in the input data set and for computed variables (both numeric and character), the default column width is the value of the COLWIDTH= attribute in the ROPTIONS window.
If you are unsure what format to use, type a question mark (?) in the format field in the DEFINITION window to access the FORMATS window.
Default: | 2 |
Interaction: | When PROC REPORT's CENTER option is in effect, PROC REPORT ignores spacing that precedes the leftmost variable in the report. |
Interaction: | SPACING= in an item definition overrides the value of SPACING= in the PROC REPORT statement or the ROPTIONS window. |
Range: | 1 to the value of the SAS system option LINESIZE= |
Default: | A column width that is just large enough to handle the format. If there is no format, PROC REPORT uses the value of COLWIDTH=. |
Note: When you stack items in the same column in a report, the width
of the item that is at the bottom of the stack determines the width of the
column.
Default: | SUM |
Note: PROC REPORT uses the name of the analysis variable as the default
header for the column. You can customize the column header with the Header field of the DEFINITION window.
You can use the
following values for statistic:
N | CSS |
NMISS | STDERR |
MEAN | CV |
STD | T |
MIN | PRT |
MAX | VAR |
RANGE | SUMWGT |
SUM | PCTN |
USS | PCTSUM |
Requirement: | To compute standard error and the Student's t-test you must use the default value of VARDEF= which is DF. |
See also: | For definitions of these statistics, see Keywords and Formulas . |
Default: | FORMATTED |
Interaction: | DESCENDING in the item's definition reverses the sort sequence for an item. |
When justifying values, PROC REPORT justifies the field width defined by the format of the item within the column. Thus, numbers are always aligned.
To access a help entry from the report, select the item and issue the HELP command. PROC REPORT first searches for and displays an entry named entry-name.CBT. If no such entry exists, PROC REPORT searches for entry-name.HELP. If neither a CBT nor a HELP entry for the selected item exists, the opening frame of the help for PROC REPORT is displayed.
Options |
Interaction: | Even though the columns that you define with NOPRINT do not appear in the report, you must count them when you are referencing columns by number (see Four Ways to Reference Report Items in a Compute Block ). |
Interaction: | SHOWALL in the PROC REPORT statement or the ROPTIONS window overrides all occurrences of NOPRINT. |
Interaction: | Even though the columns that you define with NOZERO do not appear in the report, you must count them when you are referencing columns by number (see Four Ways to Reference Report Items in a Compute Block ). |
Interaction: | SHOWALL in the PROC REPORT statement or the ROPTIONS window overrides all occurrences of NOZERO. |
Interaction: | PAGE is ignored if you use WRAP in the PROC REPORT statement or in the ROPTIONS window. |
Color |
Default: | The color of Foreground in the SASCOLOR window. (For more information, see the online Help for the SASCOLOR window.) |
Note: | Not all operating environments and devices support all colors, and in some operating environments and devices, one color may map to another color. For example, if the DEFINITION window displays the word BROWN in yellow characters, selecting BROWN results in a yellow item. |
Pushbuttons |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.