Statalist The Stata Listserver


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

st: RE: Master do file- error


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: Master do file- error
Date   Thu, 14 Jun 2007 10:20:14 +0200

--- Carola Weiss wrote:
> I would like to create a master do file. But my problem ist 
> that if I type all my do files I get the error message "file 
> not found". I don�t know what�s wrong. Is it possible that my
> do files aren�t allowed to refer to another do file? e.g: do 
> file 2 refers to do file 1?

It is definitely possible to call within a do-file another 
do-file. The most likely cause of that error message is that
you are not referring to the right directory. The working 
directory (the directory in which Stata is looking for do 
file 1) is not the directory in which do file 2 is located, 
but in Windows something like c:\data. You can change the 
working directory with the -cd- command, or refer to the 
do-file using the entire path.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



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