Statalist


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

Re: st: outreg2 and r(601) file C:\Documents.dta not found


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: outreg2 and r(601) file C:\Documents.dta not found
Date   Wed, 23 Jan 2008 09:20:44 -0500

Martin--
You seem to have diagnosed at least part of the problem, and a
workaround might be possible by replacing every instance of "`file'"
with `"`file'"' in outreg2.ado and replacing outreg2 with outreg2_mh
and then saving as outreg2_mh.ado (i.e. replace double quotes with
compound quotes and then rename the program by appending your
initials).  But I do not use -outreg2- (from SSC), so I have not
tested the workaround, nor done any additional diagnosis.

On Jan 23, 2008 9:12 AM, Martin H�llsten <[email protected]> wrote:
> Dear Statlist,
>
> I have encountered a problem when using the (latest) outreg2 ado in batchmode. The error message is
>
> r(601);
> file C:\Documents.dta not found
>
> and it appears in the following section, when issuing a merge command.
>
> <output omitted>
>  - merge `vartmp' using `tmpf1'
>        = merge __00000R using C:\Documents and Settings\martha\Local Settings\Temp\ST_0200000d.tmp
>          ----------------------------------------------------- begin merge ---
> <output omitted>
>  - if `using_file_num' == 1 {
>          = if 1 == 1 {
>          - _merge `vlist' using "`file'", `_mergeoption' `uniqopts' msginit `o
> > ptions'
>          = _merge __00000R using "C:\Documents", _merge(_merge)  msginit
> file C:\Documents.dta not found
>
>
> I have browsed statalist for this error message in combination with outreg and outreg2, but I have
> found no answers. It appears to me that somehow a local macro
>
> "`file'"
>
> contains only
>
> "C:\Documents"
>
> and seem to have lost its "tail". It should, I guess, contain something like
>
> "C:\Documents and Settings\martha\Local Settings\Temp\ST_0200000d.tmp"
>
> I have assured that I have reading and writing rights for statas tempdir.
>
> Does anyone of you have any idea what might have caused this error? The funny thing is that I can
> run the same program when using stata in non-batchmode without errors. Any idea on how to proceed is
> appreciated.
>
> Best regards
>
> Martin H�llsten

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