Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: how to insheet flat file with quote literals losslessly


From   James Sams <sams.james@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: how to insheet flat file with quote literals losslessly
Date   Sun, 25 Mar 2012 22:41:46 -0500

I have a nearly 20 gigabyte dataset shipped as a set of tab-separated files. 
Several of the files have text fields where the fields contain a single and/or 
double quote literal (e.g. '24" ruler'). However I reprocess these fields 
(doubling the quotes "" or escaping the quotes \"), Stata either corrupts the 
input or reads the datum with the quote literal as blank. Is there a way to 
format the data so that it is read losslessly by stata?

Stata 12 MP on Linux and OS X


-- 
James Sams
sams.james@gmail.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index