Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: odbc load variable not found


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: odbc load variable not found
Date   Fri, 25 Oct 2013 14:38:33 -0400

David,
not sure if this is going to work, but try to enclose the variable
name in [   ] brackets.
Best, Sergiy Radyakin

On Fri, Oct 25, 2013 at 2:28 PM, Puddicombe, David
<David.Puddicombe@bccdc.ca> wrote:
> Hello,
>
> I am trying to import data from an access database table to stata using odbc load.  There are a few variables in the access database table with a full stop/period in the variable name, which it seems cannot be loaded into stata using the odbc load command:
> - Main_Form.IDNUM
> - Main_Form.Genotype
> - Lab_PCR.Genotype
> - Vaccine.IDNUM
>
> The command I am using is below.  It works if I exclude the variables listed above with the '.' in the variable name.
>
> odbc load ///
>         primarykey="Primary Key" ///
>         main_formidnum="Main_Form.IDNUM" ///
>         casereport="Case Report" ///
>         ...
>         , table(data_export_all)
>
> Is it possible import the variables with '.' in the variable name?
>
> Thanks,
>
> David Puddicombe
> david.puddicombe@bccdc.ca
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index