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
Running an prg file in a loop
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Running an prg file in a loop
Use exec rather than run.
Re: Running an prg file in a loop
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
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
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Running an prg file in a loop
exec(10000000) :D
Who is online
Users browsing this forum: No registered users and 2 guests
