loop for string variables
Posted: Thu Mar 14, 2019 10:04 pm
Hi there,
I want to repeat the same calculation for numerous string variables. For example act/act_rb, nsw/nsw_rb etc. Below is the code I have written.
%seriesname = @wlookup ("*", "series")
for %n {%seriesname}
next
For %N act nsw qld vic %Y act_rb nsw_rb qld_rb vic_rb
series stack = {%N}/{%Y}
next
When I run the program it comes up with a syntax error. Can you please help ?
I want to repeat the same calculation for numerous string variables. For example act/act_rb, nsw/nsw_rb etc. Below is the code I have written.
%seriesname = @wlookup ("*", "series")
for %n {%seriesname}
next
For %N act nsw qld vic %Y act_rb nsw_rb qld_rb vic_rb
series stack = {%N}/{%Y}
next
When I run the program it comes up with a syntax error. Can you please help ?