Please show us a portion of the data and the desired output.
Please go back and change the subject line to something that is descriptive of the problem (we're all SAS programmers, so your subject is not descriptive and not useful)
Look into PROC MEANS. Here's how you could do it with PROC MEANS with some sample data in SAS.
proc means data = sashelp.cars n mean stddev min max sum;
var msrp;
class make;
run;
You would put your `division` variable next to the class statement.
You could drop all those statistics except SUM after the PROC MEANS statement.
Without data, this is the best I can provide.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.