title: How to find the mean value of columns in SAS
body: <p>I have a SAS data set, let's say:</p>
  
  <pre><code>No d1 d2 d3 ... dn
  1  2  3  4 ... n1
  2  3  4  5 ... n2
  3  4  5  6 ... n3
  </code></pre>
  
  <p>I now need to find the averages of all columns in SAS.
  Is there a way to do it?</p>
  
  <p>The number of columns is not specific.
  If I need the averages of <code>d1</code>-<code>dn</code> columns, then the output I expect is:</p>
  
  <pre><code>3 4 5 ..  (n1+n2+n3)/3
  </code></pre>
  
  <p>Is there a way to do this Either in the data step or using proc sql or proc iml?</p>