Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to run do files in two computers, one with Windows XP,another with Vista


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: how to run do files in two computers, one with Windows XP,another with Vista
Date   Tue, 03 Jun 2008 18:36:01 -0400

...
You can also do this just once per computer rather than per do file which needs editing for each machine. Just set a global basedir in your profile.do and then reference that global in your do files. You can even add in an alternate default assignment in the do file if $basedir isn't defined on a machine.

M Blasnik

----- Original Message ----- From: "Glenn Hoetker" <ghoetker@uiuc.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, June 03, 2008 6:06 PM
Subject: Re: st: how to run do files in two computers, one with Windows XP, another with Vista



I have a quasi-manual approach for this. Early in the do file, I have two lines

local basedir c:/xxx/xxxx
local basedir f:/xxx/xxxx

Then, later in the file, I'll have a line like

cd `basedir'

So, whenever I move, I just comment out the non-relevant line at the top. I still have to change something manually, but just in one place.
*
*   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