In reply to Bartosz Jabłoński.

Bart,

Could that macro use data set variables as parameter?
Say, I have a dataset DATASETS that has a variable DS with 2 level dataset names.
Could I then have something like:

data _null_;
length d 8;
set datasets;
d = %nobs(dset=, result=NOBS);
put d=;
run;

Thanks, Lex