Hi Gordon,
Arnold is absolutely right with his proposal. Just one thing to mention - GET is NOT supported in BPC NW (tuple is used instead). And sum will be correctly calculated as in the Arnold code due to WHEN/ENDWHEN accumulation.
And please, don't use COMMIT - useless with WHEN/ENDWHEN!
Vadim