Page 1 of 1

Code for Fan Chart - Error

Posted: Wed Aug 21, 2019 3:09 am
by creagan52
I am trying to create a fanchard for us unemployment forecasts. I have used the code below but keep getting this error message

"while statement unterminated in "WHILE 60>5"

Can anyone help with this?

Code: Select all

%esmpl= "@first 2012m12" %fsmpl= "2013m1 2013m12" !boot=1 !coefu=1 !numb=3 %modname="mod" %varname="us_une" smpl {%esmpl} equation eq1.ls us_une c us_une(-1) us_une(-2) eq1.makemodel ({%modname}) %quant_array="90" !quant_step=90/!numb !k=90-!quant_step while !k >5 %quant_array=%quant_array+@str(@round(!k)+" "

Re: Code for Fan Chart - Error

Posted: Wed Aug 21, 2019 6:13 am
by amrsherif
I believe you need a ‘wend’ at the end of the your while loop (add it as the last line)