Creating a Summarized Data Set Using PROC MEANS

OUTPUT Statement Syntax

To write summary statistics to a new data set, use the OUTPUT statement in the MEANS procedure.
Syntax, OUTPUT statement:
OUTPUT OUT=SAS-data-set statistic=variable(s);
  • OUT= specifies the name of the output data set.
  • statistic= specifies which statistic to store in the output data set.
  • variable(s) specifies the names of the variables to create. These variables represent the statistics for the analysis variables that are listed in the VAR statement.
When you use the OUTPUT statement, the summary statistics N, MEAN, STD, MIN, and MAX are produced for all of the numeric variables or for all of the variables that are listed in a VAR statement ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.