title: Is there a way to detect when you've reached the last observation in a SAS DATA step?
body: <p>Is there a way to check how many observations are in a SAS data set at runtime OR to detect when you've reached the last observation in a DATA step?</p>
  
  <p>I can't seem to find anything on the web for this seemingly simple problem.  Thanks!</p>