On Sat, 14 Aug 2010, Marcin B�^Bażejowski wrote:
suppose we have series and want to add values to some observations.
Following script doesn't work:
<script>
nulldata 120
series y = normal()
loop for (i=1; i<=109; i+=12)
genr y[$i] += 1000
endloop
</script>
Yes, something needs fixing with the "$i" read. But notice that
there's no need to use string substitution in this case. If you
replace the line in the loop with
genr y[i] += 1000
it works as expected.
Allin