Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: switch within do file from Stata 64bit to Stata 32bit


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: switch within do file from Stata 64bit to Stata 32bit
Date   Thu, 7 Feb 2013 10:41:59 +0000

Setting -version- usually does far less than users imagine, but that
seems a side-issue here. (In essence, it is only what -help version-
indicates.)

I imagine that what you might need to do is run a batch job running
different Statas in sequence.

Calling one Stata from another sounds tricky at best and a nightmare
at worst. At a minimum you would need to -save- your data from one
Stata before you read it into the other Stata. How would the first
Stata know when the second Stata had finished.

My wild guess is that this implies much more than -winexec- or a shell
call, but you may well get much better advice from people who have
done, or tried to do, something similar.

Nick

On Thu, Feb 7, 2013 at 10:24 AM, Raoul Reulen <r.c.reulen@bham.ac.uk> wrote:

> I am currently running Stata MP 12-64 bit and all works fine, but now I want to run a part of my do-file in Stata 11-32 bit because it contains reading in some MS Access tables through an odbc connection (which I cannot get to work in Stata 12 -64 bit btw). Simply using "version" control and setting the version to 11 does not seem to work.
>
> It is possible to have the do file call Stata 11-32 bit, run part of my do-file in Stata 11 32-bit and then run the remainder of my do-file in Stats 12 64-bit? I presume I would have to use .winexec or .shellout , but how exactly?

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index