Question: what is the difference between sum function and sum statement in sas?
Answer: It does appear both are called SUM statement. One is a Data set SUM statement and the second is a Proc Print Sum statement. However, they do operate differently. ... The SUM "function" (used in a data step) will handle missing values, using total= var1 + var2 in a data step will not (handle missing values).