title: Difference between SUM statement and sum variable in SAS?
body: <p>I am confused between what we call the statement below in the 2 programs in SAS ?
  Are both the statements called  SUM statements?</p>
  
  <p>I got confused when I came across a question where it was asked if SUM statement can be used in DATA step. I was wondering which sum statement they were referring to?</p>
  
  <p>First Program -</p>
  
  <pre><code>Data s1;
  set Ori.sales;
  Total+Salary;  /* What do you call this highlighted statement */
  run;
  </code></pre>
  
  <p>Second Program -</p>
  
  <pre><code>Proc print data=ori.sales;
  sum Salary;  /* What do you call this highlighted statement */
  run;
  </code></pre>