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;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Register now!
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.