Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: logout Obs nos out of range error


From   "David Fredericks" <[email protected]>
To   <[email protected]>
Subject   st: logout Obs nos out of range error
Date   Thu, 28 Oct 2010 21:57:37 +0530

I am definitely a beginner at STATA.

I have been using the logout command to export results to excel file
formats. A typical command is:

logout, save(OwnPaddyRainFedFreq) excel replace:tabulate ntpc_a_domain
OwnRainfedPaddy, chi2 miss nofreq row

I have a master file that calls a sequence of do files which contain various
analyses and the logout commands.

The problem is that the master do files have stopped working - they return
the error "Obs. nos. out of range r(198)".  I tracked this error down to the
logout command.  Everything works fine if I disable the logout command

The strange thing (to me) is that 
(1)	The master do files worked perfectly when I last used them
(2)	if I open the individual do files and run them with ctrl D they work
perfectly.  It is only when called from another do file that they fail.  

I have disabled the logout commands and now everything works but I would
like to fix the problem properly

David

______________________________
David Fredericks
Colombo, Sri Lanka
_____________________________



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index