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 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 27 Jan 1999 14:57:36 -0700
Reply-To:   Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject:   Re: Number of Lines in a Flat File
Comments:   To: medisci@POWERNET.COM
Content-Type:   text/plain; charset=US-ASCII

John Whittington <medisci@POWERNET.COM> wrote:

>At 10:24 27/01/99 -0500, Ward, David wrote: > >>Does anyone know of a quick and easy way to obtain the number of lines (i.e. >>terminated by a carriage return or line feed) in an external file without >>having the read in the whole file? > >David, as Michael has said, unless there is a known fixed number of bytes >per line/record, then I don't think there is any way that 'anyone' - whether >the OS, SAS or 'anyone' else - can possibly ascertain the number of lines >without examinining the contents of the entire file, effectively >character-by-character.

I think that's OS-dependent. The OS *could* keep track of the number of records. The Palm III OS seems to, for some types of objects that it stores. But I don't expect to see SAS running on a palmtop anytime soon.

-- JackHamilton@FirstHealth.com West Sacramento, California


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