[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: forvalues and _N
This will work:
forval e = 1/`=_N'
At 01:45 PM 9/2/2004 -0700, you wrote:
I have a problem using a forval loop to assign values to a numeric variable
(for brevity, assume that -encode- doesn't work here). I want to loop
through the entire dataset, addressing each value in turn, so
.forval e = 1/_N
would appear to be the appropriate form. I get an "invalid syntax" error
when I do so.
gives me the expected result for this dataset, 2339.
.forval e = 1/2339
works as expected.
How am I screwing this up?
Fred Wolfe (firstname.lastname@example.org)
National Data Bank for Rheumatic Diseases
Arthritis Research Center Foundation
Wichita, KS USA
* For searches and help try: