Believe it or not, you can get exactly that code using the EG visual tools. Use the Describe | Summary Statistics task. Put the variable for "Acct Number" into Classification Variables, and the variable for "Value" into Analysis Variables. On the Statistics | Basic tab, click Sum, and unclick the others. On Results, you have a few choices. Try playing around with "Show Statistics", which will create the output in a report format, and "Save statistics to a data set", which will do exactly that. Also, if you pick "N-way only", you'll only get summarization by Acct Number; if you pick "All ways", you'll also get a grand total. Give it a try, and check out the help topics. Tom
... View more