You can use any of next methods:
/* 1 */
proc summary data=have nway;
class name method;
var capacity;
output out=want(drop _freq_ _type_) sum=;
run;
/* 2 */
proc sql;
create table want as
select testplace, method, sum(capacity) as capacity
from have
group by testplace, method;
quit;
/*3 */
proc sort data=have; by testplace method; run;
data want;
set have;
by testplace method;
retain total;
if first.method then total=0;
total+capacity;
if last.method then do;
capacity=total;
output;
end;
run;