If it's a count then it isn't a sum. No array needed
the function is N
sum= n(of Var1-var7);
If the names aren't that nice in reality then us n (varname othervar thisvar thatvar);
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.