I have a follow up tho this question:
SAS, sum by group
Since I need to group by more than one variable, I add the variable accordingly. I also do not need the