Bookmark and Share

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

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

st: Importing text files using different separation rules

From   "Seliger Florian" <>
To   "''" <>
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?


Best regards,
Florian Seliger
ETH Zurich
KOF Swiss Economic Institute
Weinbergstrasse 35
8092 Zurich, Switzerland

*   For searches and help try:

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