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

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

From   Martin H�llsten <[email protected]>
To   <[email protected]>
Subject   st: RE: outreg2 and r(601) file C:\Documents.dta not found
Date   Wed, 23 Jan 2008 16:03:50 +0100

Thanks to Austin Nichols and Brian Fryd the problem is solved. outreg2 needs to be updated with
compound double quotes in order to in batchmode. I just noted that plain outreg has a comment on
this in the ado (that the mac users need this). 

For instance, 

  - merge `vartmp' using `tmpf1'

should be changed to 

  - merge `vartmp' using "`tmpf1'"
  - merge `vartmp' using `"`tmpf1'"'
(I think either works, but the latter is better, right?)

The other instances that need to be changed in the same fashion are

save `labelfile' 
joinby var1 using  `labelfile'
save `appending', replace

I notify Roy to see if he can issue an update. Thanks for all help. 


-----Original Message-----
From: Martin H�llsten [mailto:[email protected]] 
Sent: den 23 januari 2008 15:13
To: '[email protected]'
Subject: outreg2 and r(601) file C:\Documents.dta not found

Dear Statlist,

I have encountered a problem when using the (latest) outreg2 ado in batchmode. The error message is 

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 


contains only 


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

Best regards 

Martin H�llsten


___  ____  ____  ____  ____ tm
 /__    /   ____/   /   ____/
___/   /   /___/   /   /___/   10.0   Copyright 1984-2007
  Statistics/Data Analysis            StataCorp
                                      4905 Lakeway Drive
     MP - Parallel Edition            College Station, Texas 77845 USA
                                      979-696-4600        [email protected]
                                      979-696-4601 (fax)

Single-user Stata for Windows (64-bit x86-64) perpetual license:
       Serial number:  62110521898
         Licensed to:  Mona-systemet
                       Statistics Sweden

      1.  (/m# option or -set memory-) 10.00 MB allocated to data
      2.  (/v# option or -set maxvar-) 5000 maximum variables
      3.  Stata running in batch mode

which outreg2
*! outreg2 1.3 Jun2007 

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index