Date: Fri, 23 Jan 1998 16:26:11 -0600
Reply-To: Jack Hamilton <jack_hamilton@HCCOMPARE.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Jack Hamilton <jack_hamilton@HCCOMPARE.COM>
Subject: Re[2]: If 0 then set dataset/if _n_ then set dataset
Content-Type: text/plain; charset=US-ASCII
I posted some examples last year which showed that the only reliable way
to get the number of observations in a dataset is to count them. Neither
the NOBS dataset option nor dictionary.tables is always correct.
Ron Coleman <rcoleman@WORLDNET.ATT.NET> wrote:
>Wanted to add how to use the dictionary tables to get the number of obs:
>
>proc sql noprint;
> select nobs into :nobs
> from dictionary.tables
> where libname='WORK' and memname='WHATEVER';
>quit;
|