https://blogs.sas.com/content/iml/2016/03/28/save-descriptive-statistics-multiple-variables-sas-data-set.html
Proc Means
Output to screen
/* can produce 38 descriptive statistics */
proc means data=sashelp.cars nolabels
N Mean Std Min Q1 Median Q3 Max; /* specify the statistics */
run; /* omit VAR statement to analyze all numerical variables */
Output to dataset with ODS
ods exclude all; /* suppress display to open ODS destinations */
proc means data=sashelp.cars
N Mean Std Min Q1 MEDIAN Q3 Max /* type every statistic you want */
STACKODSOUTPUT; /* preserve table form of output */
ods output Summary=MeansSummary; /* write statistics to data set */
run;
ods exclude none; /* restore normal display of tables */
Proc Univariate
proc univariate data=sashelp.cars outtable=UniSummary NORMAL noprint;
run; /* omit VAR statement to analyze all numerical variables */
proc contents data=UniSummary short;
run;
proc print data=UniSummary label;
var _var_ _label_ _NObs_ _Mean_ _Std_ _Min_ _Max_;
run;