sas求和汇总

sas求和汇总
预览:

/*累计求和*/

data a;

input a ;

b+a;

cards;

1

2 3

4

;

run;

/*横向求和*/

data class;

set sashelp.class;

sum1=sum(of _numeric_);

sum2=sum(of age-numeric-weight); run;

/*单变量一列求和*/

proc sql ;

create table RESULT as

select

sum(VAR) as SUMVAR

from DATABASE;

quit;

第1页/共1页

寻找更多 "sas求和汇总"