<>
The behavior reported by Kabs can be replicated via
***
set obs 10
local i = 1
while `i' < 3 {
inp myvar`i'
5
4
3
end
}
***
Kabs, why do you want to put -input- into a -while- loop which is subject to
this very special hazard? Describe what you want to do and I am sure we can
circumvent the problem w/o making Stata discriminate between the
two -end-s-...
HTH
Martin
_______________________
----- Original Message -----
From: "Kabs Chabalav" <[email protected]>
To: <[email protected]>
Sent: Sunday, May 03, 2009 11:51 PM
Subject: st: Using 'input' in a while loop
I have an input data command inside a while loop, but when I invoke
'end' to signal the completion of entering data the while loops ends.
Are there any workarounds?
Thank-you.
*
* 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/
*
* 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/