Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: file handle __00000G not found


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: file handle __00000G not found
Date   Wed, 5 Oct 2011 08:52:42 +0100

Thanks for the fuller example. I can't check this example and you
don't say which command produces the error message, which is the most
important piece of information here. The most obvious writing of files
here will be done by -outreg2- (SSC; please remember to explain
user-written commands you refer to), so further support might well
need a contribution from its author, not a member of this list, or
other users. I think they would need the results of -set trace on- to
see not only which command produced this, but where in the command it
was produced.

Nick

On Wed, Oct 5, 2011 at 8:24 AM, Bulent Koksal <bkoksal@gmail.com> wrote:
> I have a do file something line below. When this error occured no
> output file was open. I also have the necessary permissions for the
> directory that I am writing to. By the way I get the error message for
> different values of the loop counter, i. I mean for example, I get the
> error message when i=36; I rerun the do file and now I get the error
> message for a different value of i.
>
>
> clear all
> cd "my directory"
> local fname levfinalave
> use `fname'.dta, clear
>
> xtset firmno period
>
> local i=1
>
> cd "output directory"
>
> foreach depvar in "depvar_1" "depvar_2" "depvar_3" "depvar_4" {
>  foreach size in "size1" "size2" {
>    foreach growth in "g1" "g2" {
>
> xtreg `depvar' `size'  `growth'  gdprgrowth ddebt_gdphaz if `depvar'>=0, fe
> est store m`i'
> outreg2 [m`i'] using levave_fs, alpha(0.01, 0.05, 0.01) dec(4) excel
> local i=`i'+1
>
> display "Estimation No: " `i'
>
> est clear
>
> }
> }
> }
>
>
>
>
> On Wed, Oct 5, 2011 at 10:10, Nick Cox <njcoxstata@gmail.com> wrote:
>> I guess it means that you are trying to write to a file with a handle
>> defined by a -tempname- and have not properly declared how you are
>> going to do it. Or perhaps there is some problem with file
>> permissions. To say more we would be helped by your telling more about
>> what you actually wrote, or whether this is a problem with others'
>> programs.
>>
>> Nick
>>
>> On Wed, Oct 5, 2011 at 7:50 AM, Bulent Koksal <bkoksal@gmail.com> wrote:
>>
>>> Does anybody knwo what this error message means? Thank you in advance.
>>>
>>> file handle __00000G not found

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index