Date: Fri, 16 Feb 1996 16:21:00 -0500
Reply-To: Mark Dalesandro <dalesam@HLTHSRC.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Mark Dalesandro <dalesam@HLTHSRC.COM>
Subject: Re: Counting the # of variables in a SAS dataset -Reply
dictionary.tables is another quick option to get such info about a dataset:
you might try:
proc sql noprint;
select (NOBS-DELOBS+0) into:number
from %str(dictionary.tables)
where libname="LIBNAME" and memname="DATANAME";
quit;
&number will hold the number of obs.
Regards,
dalesam@hlthsrc.com
|