- data lll;
- do until(eof);
- set kkk end=eof;
- _b= sum(_b, b);
- _c = sum(_c, c);
- output;
- end;
- a='ALL';
- b=_b;
- c=_c;
- output;
- drop _b _C;
-
- *or use proc tabulate/report etc;
- proc tabulate data=kkk order=data out=lll;
- class a;
- var b c;
- tables a all, b*sum c*sum;
- data lll;
- set lll(keep=a b_sum c_sum rename=(b_sum=b c_sum=c));
- if a=' ' then a='ALL';
- run;


雷达卡




京公网安备 11010802022788号







