Statalist The Stata Listserver


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

st: RE: Infile stops reading dataset


From   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   st: RE: Infile stops reading dataset
Date   Tue, 27 Mar 2007 12:54:30 -0400

Line 3535 is the first place the character "�" (umlaut y) appears 
(it is also in the next two records). Remove those characters and 
the file reads to completion. This seems to be a problem for 
StatCorp to resolve.

Tom

-----------------------------------
Thomas J. Steichen
[email protected]
-----------------------------------
 
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of evan roberts
Sent: Tuesday, March 27, 2007 12:09 PM
To: [email protected]
Subject: st: Infile stops reading dataset

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).

When I try reading a different section of the file after line 3534, by 
specifying _firstlineoffile() Stata reads in no observations.

The problem occurs under both Unix and Windows, and does not appear to 
be related to carriage returns or odd characters in the file.

Because the dataset is quite large, and the problem appears someway into 
the file I have put them on the web 
(http://users.pop.umn.edu/~eroberts/no1875/) for anyone who wishes to 
take a look. I have just excerpted 10000 lines of the file to reduce the 
file size. An aside for anyone who does look at the 
programs/dictionaries -- although most variables are (meant to be) 
numeric we are reading them as strings specifically to see if there are 
alpha characters in the data mistakenly.

Many thanks for whatever help people can provide
Evan Roberts

-- 
------------
Evan Roberts
Minnesota Population Center and Department of History
University of Minnesota
<[email protected]>
www.pop.umn.edu/~eroberts
*
*   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/

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney-client or other legal privileges, and/or
proprietary non-public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution,
or reproduction of this message and/or any of its attachments (if
any) by unintended recipients is not authorized and may be
unlawful.


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index