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

Re: st: How to input in a do file

From   Sergiy Radyakin <>
Subject   Re: st: How to input in a do file
Date   Tue, 28 Jul 2009 16:32:24 -0400

Dear Tiago,

just to fully answer your questions, you are getting r(612) unexpected
end of file, because you are inputting a variable in the program. The
proper syntax is:
input something

But "end" is not found. In fact -input- does not allow the user to
input value from the keyboard, unless used interactively from command

Best regards,
  Sergiy Radyakin

On Tue, Jul 28, 2009 at 3:22 PM, Tiago Dias<> wrote:
> Hi again.
> I'm doing a little do-file and I have a problem wich I can't solve.
> At a certain point, after some calculations, I need to stop the program and wait the user decide over option A or option B.
> I thought about using -input- 'tempvar' and verifying the value of 'tempvar', but when I use -input- in the middle of the do file I get an error (r(612) - unexpected end of file) and the do-file ends.
> Does anyone has a idea about what to do?
> Thanks.
>      ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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