Ok, you can do this using proc sql and Dictionary tables: (https://documentation.sas.com/?docsetId=lrcon&docsetTarget=p00cato8pe46ein1bjcimkkx6hzd.htm&docsetVersion=9.4&locale=en ) proc sql; select count(distinct memname) /* not sure it’s memname, view table to verify */ :into &nrep from dictionary.tables /* not sure it's .tables, check above website to verify */ where libname = “YOUR_CATALOG” ; quit; %put &nrep; *check in log that there is something there; Please make sure that name of library is in capital letters.
... View more