title: How to count the number of observations in a SAS table?
body: <p>I am very new to SAS. Now, I have a SAS data table as following:</p>
  
  <pre><code>    ID       score
  -------------------
      01         1
      02         3
      03         4
      04         2
  </code></pre>
  
  <p>Is there any way to save the number of observations in this table <strong>using only PROC SORT and DATA step</strong>? I want to hold the value in the log window, which is like "hold N=4" in the SAS log script.</p>
  
  <p>Sorry for my unprofessional description. Thanks in advance.</p>