[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: problem with do file stopping prematurely
The first statement is in general quite wrong.
However, Ketan is absolutely correct in
advising you to check for an incomplete last
line lacking end-of-line character(s).
> I believe that Stata does not process the last line of a do file, so
> if the gen diriscore command is the last line of the file, it will not
> be run. The file with just the gen diriscore command in it is
> probably not working for the same reason. A solution is to add a
> carriage return after the end of the gen diriscore command.
Christopher W. Ryan
> > I composed the following do file in Crimson editor:
> > *reverse code the appropriate items in pms
> > vreverse pms3, gen(pms3r)
> > vreverse pms5, gen(pms5r)
> > gen
> > gen
> > The do file runs in stata as far as generating the
> pmsscore. Then it
> > stops with an "end of do file" message. diriscore never
> gets generated.
> > But if I then copy and past that last command, with gen
> diriscore= et
> > cetera, into the command window of stata, it works fine, generating
> > diriscore.
> > A separate do file, containing just that last command, when
> called after
> > the original do file is run, does nothing.
* For searches and help try: