Page 1 of 1

Running an prg file in a loop

Posted: Mon Feb 20, 2017 2:57 am
by jxwong
Hi,

My loop stops after the first iteration when i run a prg file in the loop.

Could someone let me know what is wrong with the loop code? A simplified code of my loop is as follows:

for %x abc def ghi
series y = y_{%x}
series x = x_{%x}

run regression.prg

next

----------------------

The regression.prg can run with no problems.

Thanks and regards
Jian Xiang

Re: Running an prg file in a loop

Posted: Mon Feb 20, 2017 7:18 am
by EViews Gareth
Use exec rather than run.

Re: Running an prg file in a loop

Posted: Mon Feb 20, 2017 4:58 pm
by jxwong
Thanks Gareth. Is it possible to make the execute function continue despite infinite errors?

Understand that exec(10) would mean the program would stop only after 10 errors are detected. What do i put inside the () to tell eviews to not stop despite errors.

Regards,
Jian Xiang

Re: Running an prg file in a loop

Posted: Mon Feb 20, 2017 6:17 pm
by EViews Gareth
exec(10000000) :D