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

st: Re: help on dealing with a character in a text file


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: help on dealing with a character in a text file
Date   Wed, 9 Feb 2005 15:44:13 -0500

try -hexdump- and -filefilter-. Use hexdump to identify what ascii codes are the problem (use analyze and tabulate options)and use filefilter to replace all offending codes with whatever is appropriate (spaces?)

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- From: "MITRA PINAKI (MAR1PXM)" <mar1pxm@ups.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Wednesday, February 09, 2005 1:26 PM
Subject: st: help on dealing with a character in a text file



Hello List,

   I have a series of fixed formatted flat files which I read in STATA
   using infix. Sometimes I get a character  in one of the name/address
   fields and STATA stops reading the file. In other words, if the
   character  appears in line 100, STATA only reads till line 99 of the
   data file. How can I make STATA read the entire file?

Thanks,
Pinaki

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