Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: AW: st: truncate folder path in Stata 7?


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: AW: st: truncate folder path in Stata 7?
Date   Fri, 12 Dec 2003 11:05:49 +0100

Dietrich Dr�ner wrote:
> thanks a lot, it works! The only strange thing is, that I have to copy
> identical profil.do files into all folders where I want to run do files
> referring to profile. Stata does not search for it along the path as
> described in -help profile.

Never had such problems. My profile.do is in ~/bin under Linux, and in  
c:/ado/personal (i.e. the personal ado-path) under Windows. 

regards
uli


> Ulrich Kohler wrote:
>
> How about defining global makros in profile.do (see -help profile) or in
> project master files. For example your profile.do might read like this
>
> ---------------------profile.do
> global ourprojectdata "m:/workgroup/datasets/ourprojectdata"
> global ourproject "c:/My Files/projects/ourproject"
> ----------------------------------
>
> and profile.do on your collegues machine might read like this:
>
> ---------------------profile.do
> global ourprojectdata "/home/collegue/datasets/projects"
> global ourproject "/home/collegue/ourproject"
> ----------------------------------
>
> Then you can run Do-Files on both machines which contains commands like
> this:
>
> . cd "$ourproject"
> . use "$ourprojectdata/maindata"
> . log using "$ourproject/an1", replace
> . scatter varlist, saving("$ourproject/graphs/mygraph, replace)
>
> many regards
> uli

-- 
[email protected]
+49 (030) 25491-361


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