The Sum statement is closely related to RETAIN. It allows one to calculate a cumulative sum over the observations in a data set. Many statistics and other quantities that arise in statistical programming are sums over the data, or subsets of the data. So the Sum statement is surprisingly useful.
This video covers essential course content, so you should definitely watch it.