title: How do you print the last observation of a SAS data set?
body: <p>I have a data set with 1000 observations. I want to only print out the last observation. Using the following: </p>
  
  <pre><code>proc print data=apple(firstobs = 1000 obs = 1000); 
  run;
  </code></pre>
  
  <p>I can get the last observation. But I have to know in advance that my data set has 1000 observations. How do I do this without knowing this?</p>