Statalist The Stata Listserver


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

RE: st: I use different computers and lost track of my files


From   "Fennema, Julian " <[email protected]>
To   <[email protected]>
Subject   RE: st: I use different computers and lost track of my files
Date   Mon, 30 Oct 2006 11:07:36 -0000

A useful extension to this suggestion is to include the definition of
the global macro in the "profile.do" that Stata runs automatically on
start-up. This way you do not need to change anything from one computer
to the other, just include the global macro in your do-files as
suggested by Sebastien.

Julian


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sebastian
Baumeister
Sent: 30 October 2006 10:53
To: [email protected]
Subject: Re: st: I use different computers and lost track of my files

you could use a global macro and then use. then you only have to change 
the macro var.

global p ""I:\mydata\stata\whatever1\"

use "$p\data.dta", clear

Oleksandr Shepotylo schrieb:

> Hi dear statalist users,
>
> I am using a flash drive with stata files on it. When I move from one 
> computer to another computer,  flash drive can change the name from, 
> for example, "I:\" to "G:\" and I have to edit my files.
> Is there a way to say to Stata the letter where the flash drive is 
> located and put that letter in a macro that can be later used in my 
> programms?
>
> More generally, any tips on how to organaze the workflow when you move

> from one workplace to another?
>
> Best
>
> Oleksandr Shepotylo
> *
> *   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/
>

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


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index