Hi
I am a beginner of runmlwin. I followed the example 1 in Leckie and Charlton's article to learn this command.
But there is always an error that "macro file not found (OBEY "C:\Users\?a|..\AppData\Local\Temp\ST_01000007.tmp")".
I know someone has the same problem as me, so I've tried "nopause" and "viewmacro" added to the end, but it didn't work.
I've run the following command in my STATA 12.1.
* global MLwiN_path "C:\Program Files\MLwiN trial\i386\mlwin.exe"
* use "http://www.bristol.ac.uk/cmm/media/runm ... torial.dta", clear
* runmlwin normexam cons, level2(school: cons) level1(student: cons) nopause viewmacro
* runmlwin normexam cons, level2(school: cons) level1(student: cons) nopause
* runmlwin normexam cons, level2(school: cons) level1(student: cons) viewmacro
Neither of them works. Please let me know how to deal with this problem. Thank you.
K.C. Lee
runmlwin: macro file not found
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: runmlwin: macro file not found
In order to pass the data and script from Stata to MLwiN, runmlwin uses the tempfile (http://www.stata.com/help.cgi?tempfile) function provided by Stata to identify a suitable name for the files containing this information. From the error message that you are getting it appears as if something is wrong with the directory that it has chosen (for example the user name part seems to start with a ? which is normally invalid for file/directory names). I would suggest testing whether this is what is causing the problem by creating and setting as STATATMP a directory with a much name (for example C:\TEMP). You can find how to do this at the following link: http://www.stata.com/support/faqs/data- ... -variable/.
Re: runmlwin: macro file not found
Hi Chris,
Yes, you're right. Something is wrong with the directory. I followed the link that you gave and changed the setting, then it works.
Thank you very much.
K.C. Lee
Yes, you're right. Something is wrong with the directory. I followed the link that you gave and changed the setting, then it works.

Thank you very much.
K.C. Lee