On Tue, 15 May 2012, Allin Cottrell wrote:

> You can use string variables to hold the names of the starting and ending 
> series in the list, and use "@" to invoke string substitution:
>
> loop i=1..4 -q
>  scalar k = i*12
>  sprintf lmax "dt_%d", k
>  sprintf lmin "dt_%d", k-11
>  list R = @lmin..(a)lmax
>  list R print
> endloop

Ha, I see that mailman has mangled the "list R =" command 
above (in the gretl-users mail archive), taking the last part 
to be an email address! Using "&" for ampersand (let's see 
if this works!) the line should read:

list R = &lmin..(a)amp;lmax

Allin Cottrell

Reply via email to