On Thu, 2 Jan 2014, Sven Schreiber wrote:
Am 02.01.2014 04:35, schrieb Allin Cottrell:
> On Wed, 1 Jan 2014, Sven Schreiber wrote:
>
>
> I'd second Jack's suggestion: if you can send us the original .dta
> file maybe we can find out how the duplicate name came into being,
> though we might also need a hint as to what sort of commands were
> executed after opening the Stata file.
>
The file is too big and also restricted.
OK.
But I just found out that it's enough to do:
1) import
2) save as gretl file (undated)
-- the imported but corrupted variable name is still visible in the
variable list--
3) close the file
4) open the file again, and then I have a double "nordwest"!
Thanks. I wonder if this is fixed by the revision to stata_import.c?
That's in CVS but not yet in the Windows snapshots. (I hope to get a
new snapshot in place tomorrow or the day after.)
This is quite interesting, from Sergiy Radyakin
http://www.stata.com/statalist/archive/2013-10/msg00289.html :
"the variable names in Stata must be comprised of letters a..z,
A..Z, digits 0..9 and an underscore, and may not start with a digit.
Use of any other symbols is NOT supported. Some conversion programs
(including one of my own) used to produce files with accents/umlauts
and other non ASCII latin characters if they were present in the
original file. Although Stata can open such a file, some commands
will not work later. Non-Stata software that actually validates the
input may refuse to work with such files. If anything, it is a bug
and Stata should properly respond with error 198 .. invalid name."
Allin