I have a little SAS program
proc means nway data=sashelp.cars noprint; class Type Origin; var horsepower; output out=stats max(horsepower)=horsepo