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

st: Re: ODBC plus Excel column labels with a # sign


From   kturner@stata.com (Kevin Turner)
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: ODBC plus Excel column labels with a # sign
Date   Tue, 25 Oct 2005 16:09:25 -0500

Steichen, Thomas J. (SteichT@rjrt.com) writes:

>I'd rather, though, handle this as part of the load command so I tried to
>use the variable renaming feature of load. This yields an error:
>
>    . odbc load subjnum=subj# appearance=appearance#, ///
>      dsn("Temp PPXREF") table("ppxref$") lowercase clear
>    variable subj not found
>     r(683);

This is a limitation of the extended varlist parsing used in -odbc load- and
will be addressed in the next executable update. 

You might be able to import them via a SQL convert/rename, but I haven't had
any luck with the Excel ODBC driver supporting such syntax. Your best option
may be to use -rename- until the next update.

--Kevin Turner
kturner@stata.com

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