proc summary data=have nway;
class id;
var x y;
output out=want(drop=_:) sum=/autoname;
run;
/*or*/
proc sql;
create table want as
select id,sum(x) as sum_x ,sum(y) as sum_y
from have
group by id;
quit;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!