Not exactly:
di 'Hi there'
is illegal. Use " " for literal text.
But the practice of putting programs in files
is correct. I did it interactively because
it seemed that the difference between
defining a program and running it was
what you were not grasping, but that's
only practical for very short programs.
Using a do-file is certainly one way to
do it.
There really is no substitute for working
your way through [U] 21.
Nick
[email protected]
> -----Original Message-----
> xiaotang li
> Thanks a lot for your reply and sorry for bothering
> you again. Still I can't work it out. I just don't
> know how to run a programe. I write such things like:
> prog define Nick
> display 'Hi there'
> end
>
> in a do-file and save the do-file, then I type
> 'do.....' in the command box to do the do-file, is it
> right?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/