Reply To: How to Get number of observations and Variables in SAS?

#49432
rlochan2021
Keymaster

PROC SQL;
select memname, name, length(name) as Variable_Length, label,
length(label)as label_length
from dictionary.columns
where libname=”WORK” and memtype=”DATA”;
QUIT;

PROC SQL;
select memname, name, length(name) as Variable_Length, label,
length(label)as label_length
from dictionary.columns
where libname=”DATADIR” and memtype=”DATA” and
(length(name)>8 or length(label)=1 or
length(label)>40);
QUIT;