*Copyright @ www.mycsg.in;


What is the Sum Statement

Sum statement syntax

Comparison with the RETAIN approach

Create input dataset

Using the sum statement as a row counter

Using the sum statement for a running total

Using the sum statement within BY groups

Using the sum statement as a within-group counter

Key points to remember