Creating a Summarized Data Set Using PROC MEANS

Overview

You might want to create an output SAS data set. You can do this by using the OUTPUT statement in PROC MEANS.
General form, OUTPUT statement:
OUTPUT OUT=SAS-data-set statistic=variable(s);
where
  • OUT= specifies the name of the output data set
  • statistic= specifies the summary statistic written out
  • 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 by default ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.