proc means data=have;
by id group subgroup;
var x1-x3;
output out=want mean=;
run;
This works for me 🙂
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.