Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: I can't run a simple program!


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, <statalist@hsphsun2.harvard.edu>
Subject   Re: st: I can't run a simple program!
Date   Wed, 18 Jun 2008 17:05:06 -0500

At 03:57 PM 6/18/2008, Solorzano, Jenniffer wrote:
Hi,
I don't know what is happening with my stata version. I'm trying to run
this simple program....

. program count6
  1. forvalues `i'=1/6 {
  2. display `i'
  3. }
  4. end

. count6
_= invalid name
r(198);


And that error appears from nothing, somebody can help me?
forvalues `i'=1/6 {

should be

forvalues i=1/6 {

When in doubt, try -set trace on- to see where the error is occurring.



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index