In reply to Stephen Philp.

Thanks Chris,

Was really hoping &sysnobs would return the number of records that survived the where clause when called after a PROC, but seems to just return the number of records in the input dataset.

43 proc print data=sashelp.shoes;
44 where Region='Canada';
45 run;

NOTE: There were 37 observations read from the data set SASHELP.SHOES.
WHERE Region='Canada';

46 %put &sysnobs;
395

So to get the "right" answer (37), feels like I still need to make another pass of the data. Bummer.

--Q.