proc means data=have;
by id group subgroup;
var x1-x3;
output out=want mean=;
run;
This works for me 🙂
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.