Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Infile stops reading dataset


From   Ronán Conroy <rconroy@rcsi.ie>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Infile stops reading dataset
Date   Wed, 28 Mar 2007 20:49:37 +0100

On 27 Márta 2007, at 17:09, evan roberts wrote:

hello,

Has anyone ever had infile stop reading a dataset part way through a file for no apparent reason?

I have tested the dictionaries and the data reads in correctly for the first 3534 lines of the file, and then stops (there are 778,429 lines in the file -- it is hierarchical).
It's good that Bill has found the particular cause of this glitch, but in general this sort of problem often results from non-printing junk characters in your data. Especially beware of files that resided on MS-DOS.

The first step in fixing this problem is probably to open the data file in a text editor and simply issue the 'convert to ASCII' command.


=========
Ronán Conroy
Royal College of Surgeons in Ireland
rconroy@rcsi.ie
+353 (0) 1 402 2431
+353 (0) 87 799 97 95
http://www.flickr.com/photos/ronanconroy




*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index