Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: re: while looping


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: re: while looping
Date   Wed, 20 Aug 2003 12:04:51 +0100

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/



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