Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Importing text files using different separation rules


From   "Seliger Florian" <seliger@kof.ethz.ch>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: Importing text files using different separation rules
Date   Fri, 20 Jan 2012 14:15:44 +0000

Dear Statalist,

I want to import text files with STATA, but the problem is that some string variables are too long (too many strings).

Therefore, I'm searching for a way to tell STATA that it shall split these variables according to certain rules (the separation character for these variables must be different from other variables which are not too long) when importing the files. STATA only needs to apply these rules to certain variables and not to all.

Principally, I would import the too long variables first, then doing a match with other variables in the second step. Unfortunately, "insheet" does not import single variables (STATA will report an error message).

Any suggestions?

Thanks.


Best regards,
__________
 
Florian Seliger
 
ETH Zurich
KOF Swiss Economic Institute
WEH C 5
Weinbergstrasse 35
8092 Zurich, Switzerland
 
seliger@kof.ethz.ch
www.kof.ethz.ch


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index