Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Dimitriy V. Masterov" <dvmaster@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Getting rid of binary codes so I can read in files - reposted |
Date | Thu, 19 Jan 2012 15:53:48 -0500 |
Orian, I sent a response to Statalist on Jan 13, but for some reason it does not show up in the archives, so I am sending it again in case it might prove helpful. I'm not sure if you're specifying the binary zero character correctly. Try "filefilter file1 file2, from(\0) to() replace". I am also not sure what you mean by "hangs". 2 million characters may take a bit of time to replace. It may also be helpful to see what the first few rows of your data look like (before and after the filefilter). A good command for that is chunky with the peek option from ssc: ssc install chunky chunky using file1or2.txt, peek(5) HTH, DVM * * 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/