Restriction: | A weight cannot be applied to a report-item alias without also applying it to the report-item. The WEIGHT= option must appear in the DEFINE statement for the report-item. |
Tip: | If you do not use a DEFINE statement, then PROC REPORT uses default characteristics. |
Examples: | Ordering the Rows in a Report Using Aliases to Obtain Multiple Statistics for the Same Variable Consolidating Multiple Observations into One Row of a Report Creating a Column for Each Value of a Variable Displaying Multiple Statistics for One Variable Writing a Customized Summary on Each Page Creating and Processing an Output Data Set Storing Computed Variables as Part of a Data Set Using a Format to Create Groups Specifying Style Elements for ODS Output in Multiple Statements Using the WIDTH= and CELLWIDTH= Style Attributes with PROC REPORT |
DEFINE
Var1–Var3/ width=10 center “#Visit#Date”;
Do not specify a usage option in the definition of a statistic. The name of the statistic tells PROC REPORT how to use it.
:−
= \_ .* +
options
nolabel;
HEADLINE underlines all column headings and the spaces
between them. In traditional (monospace) SAS output, you can underline
column headings without underlining the spaces between them, by using
the special characters '--'
as the last line
of each column heading instead of using HEADLINE. (See Consolidating Multiple Observations into One Row of a Report.)
Consolidating Multiple Observations into One Row of a Report
If CONTENTS= is specified, but no PAGE option is specified, then PROC REPORT generates a warning message in the SAS log file.
If the DEFINE statement has a PAGE option and there is a BREAK BEFORE statement with no PAGE option, then PROC REPORT does not create a directory in the table of contents. Instead, PROC REPORT uses the CONTENTS= value from the DEFINE statement to create links to the table of contents. If there is no CONTENTS= option in the DEFINE statement, then PROC REPORT creates links using the default text COLA–COLB. Refer to the Default explanation above.
If there is a BREAK BEFORE statement with a CONTENTS=' ' option specified and a PAGE option specified, then PROC REPORT does not create a directory in the table of contents. Instead, PROC REPORT uses the CONTENTS= value from the DEFINE statement to create links to the table of contents. If there is no CONTENTS= option in the DEFINE statement, then PROC REPORT creates links using the default text COLA–COLB. Refer to the Default explanation above.
For RTF output, the CONTENTS= option has no effect on the RTF body file unless you turn on the CONTENTS=YES option in the ODS RTF statement. In that case, a Table of Contents page is inserted at the front of your RTF output file. Your CONTENTS= option text from PROC REPORT will then show up in this separate Table of Contents page.
CONTENTS=''
If there are multiple BREAK BEFORE statements, then the link text is the concatenation of all of the CONTENTS= values or of all the default values.
If the MLF option is omitted, PROC REPORT uses the primary format labels to determine the subgroup combinations. The primary format labels correspond to the first external format value.
SHOWALL in the PROC REPORT statement or the ROPTIONS window overrides all occurrences of NOPRINT.
SHOWALL in the PROC REPORT statement or in the ROPTIONS window overrides all occurrences of NOZERO.
To include all ranges and values of the user-defined formats in the output, use the COMPLETEROWS option in the PROC REPORT statement.
SPACING= in an item's definition overrides the value of SPACING= in the PROC REPORT statement or in the ROPTIONS window.
Using Aliases to Obtain Multiple Statistics for the Same Variable
Consolidating Multiple Observations into One Row of a Report
A weight cannot be applied to a report-item alias without also applying it to the report-item. The WEIGHT= option must appear in the DEFINE statement for the report-item.
Use the WEIGHT= option in separate variable definitions in order to specify different weights for the variables.