I need a list of all datasets in a library but showing number of observations of each one
Like:
proc datasets library=libname;
run;
But showing the number of observations of all datasets.
Do you know if exists a proc for that?
thanks
data list; set sashelp.vtable; where libname='WORK'; keep memname nobs; run; proc print noobs;run;
View solution in original post
Use PROC CONTENTS
proc contents data=_all_ details; run;
alternatively with proc sql,
dictionary tables
proc sql; create table want as select memname, nobs from dictionary.tables where libname='SASHELP'; quit;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.