Syntax, SUM statement:
SUM variable(s);
|
proc print data=clinic.insure;
var name policy balancedue;
where pctinsured < 100;
sum balancedue;
run;
Syntax, BY statement
in the PRINT procedure:
BY <DESCENDING> BY-variable-1
<...<DESCENDING> <BY-variable-n>>
<NOTSORTED>;
|
proc sort data=clinic.admit out=work.activity; by actlevel; run; proc print data=work.activity; var age height weight fee; where age>30; sum fee; by actlevel; run;
proc sort data=clinic.admit out=work.activity; by actlevel; run; proc print data=work.activity; var age height weight fee; where age>30; sum fee; by actlevel; id actlevel; run;
Syntax, PAGEBY statement:
PAGEBY BY-variable:
|
proc sort data=clinic.admit out=work.activity; by actlevel; run; proc print data=work.activity; var age height weight fee; where age>30; sum fee; by actlevel; id actlevel; pageby actlevel; run;