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 on April 23, and its replacement, 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 <>
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-

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.


On Thu, Feb 7, 2013 at 10:24 AM, Raoul Reulen <> 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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index