SUMMARY subcommand (REPORT command)
SUMMARY calculates
a wide range of aggregate and composite statistics.
-
SUMMARYmust be specified ifLISTis not specified onFORMAT. - The minimum specification is an aggregate or a composite
function and its arguments. This must be the first specification on
SUMMARY. - Each
SUMMARYsubcommand following aBREAKsubcommand specifies a new summary line. - The default location of the summary title is the
column of the break variable to which the summary applies. When more
than one function is named on
SUMMARY, the default summary title is that of the function named first. Both the title and its default column location can be altered. See the topic Summary titles (REPORT command) for more information. - The default format can be altered for any function. (See the topic Summary print formats (REPORT command) for more information. )
-
SUMMARYsubcommands apply only to the precedingBREAKsubcommand. If there is noSUMMARYsubcommand after aBREAKsubcommand, no statistics are displayed for that break level. - To use the summary specifications from a previous
BREAKsubcommand for the currentBREAKsubcommand, specify keywordPREVIOUSonSUMMARY. See the topic Other summary keywords (REPORT command) for more information. - Summary statistics are displayed in report columns. With aggregate functions, you can compute summary statistics for all report variables or for a subset. See the topic Aggregate functions (REPORT command) for more information. With composite functions, you can compute summaries for all or a subset of report variables and you have additional control over the placement of summary statistics in particular report columns. See the topic Composite functions (REPORT command) for more information.
- Multiple summary statistics requested on one
SUMMARYsubcommand are all displayed on the same line. More than one function can be specified onSUMMARYas long as you do not attempt to place two results in the same report column (REPORTwill not be executed if you do). To place results of more than one function in the same report column, use multipleSUMMARYsubcommands. - Any composite and aggregate functions except
FREQUENCYandPERCENTcan be specified on the same summary line. - To insert blank lines between summaries when more
than one summary line is requested for a break, use keyword
SKIPfollowed by the number of lines to skip in parentheses. The default is 0. See the topic Other summary keywords (REPORT command) for more information.