Thank Reeza and Shmuel, your suggestions seem right, but still have some questions: 1, when I use PROC CONTENTS to check variable names, no "total sales" was found indeed, only saw "sales", but the dataset "sashelp.shoes" in my computer does clearly show "Total Sales" instead of "Sales" (see the attached picture 1). 2, when I used following codes as you suggested, it seemed working, which shows a table format exactly as I want, but the problem remains: "Total Sales" again, not the one I expected (ie, total_regional_sales) (picture 2). proc means data= sashelp.shoes ; var sales ; by region; output out=Regional_sales SUM(sales)=total_regional_sales; run; this problem seems bizzare, "Total Sales" seems very dominate in my computer, I wonder if my computer is virus infected. any more idea? thanks again. Mike
... View more