David B. Horvath presented on using the NOBS option in SAS. NOBS allows you to store the number of observations in a dataset or view in a macro variable. However, NOBS is set before any WHERE processing, so the number of observations may not reflect any WHERE clause filters. To get an accurate observation count after filtering, a separate DATA step with the WHERE clause is needed before using NOBS. The XML engine also does not properly implement NOBS.