Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Insheet question


From   "Andreas Aschbacher" <aa_surf@gmx.at>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Insheet question
Date   Fri, 27 Feb 2004 16:17:18 +0100 (MET)

drop first line and:
follow File -> Import -> ASCIIData created by a spreadsheet
give in names for variables and don't forget tab-delimited 
andreas

 Probably another dumb newbie question, but...
> 
> I'm trying to read a tab delimited file into a Stata (Intercooled 
> 8.2) data set using insheet. It's fairly large (3800+ observations, 
> 424 variables) and the first line contains the variable names. 
> Without the variable name line Stata reads it in fine, but with the 
> variable name line I get a
> 
> "if invalid varname
> error in line 1 of file"
> 
> error message. I've looked at the variable names, but I don't see 
> anything obviously wrong, and the Stata help file doesn't say much 
> about what constitutes valid variable names, nor is the User's Guide 
> overwhelmingly informative on this issue. Anyone know what the 
> maximum length for a variable name is? Any other common pitfalls 
> unique to Stata I should look for?
> 
> -- 
> Robin
> --------------------------------------------------------------
> W. Robert Newberry, IV CIH, CHMM
> Chief Environmental <a
href="http://www.ntsearch.com/search.php?q=Health&v=55";>Health</a> and <a
href="http://www.ntsearch.com/search.php?q=Safety&v=55";>Safety</a> Officer
> Clemson University
> 
> wnewber@clemson.edu  ehs@clemson.edu
> http://ehs.clemson.edu/
> *
> *   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/
> 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

*
*   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