LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 1998, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: rcoleman@WORLDNET.ATT.NET
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;


Back to: Top of message | Previous page | Main SAS-L page