Syntax, OUTPUT statement:
OUTPUT OUT=SAS-data-set
statistic=variable(s);
|
proc means data=clinic.diabetes; var age height weight; class sex; output out=work.sum_gender mean=AvgAge AvgHeight AvgWeight min=MinAge MinHeight MinWeight; run;
proc print data=work.sum_gender; run;
proc means data=clinic.diabetes noprint;
var age height weight;
class sex;
output out=work.sum_gender
mean=AvgAge AvgHeight AvgWeight;
run;