Error Handling: WFCLOSE and TRY
Posted: Thu Aug 29, 2013 3:59 am
[Using version 8]
Hi there,
I am missing a few essential features in Eviews related to error handling, in particular an equivalent to the "try" command common to many programming languages.
First, I am aware that there is the possibility of using the error count. But this is often cumbersome.
WFCLOSE: wouldn't it be possible to change this command for Eviews to try to close any open WF? Currently I have to comment it in an out while debugging. Would it be possible to extend the "noerr" option to the case where no name is given? Btw, even in the case where a name is given the "noerr" options doesn't seem to work for me (in the code below). Am I doing something wrong?
Equation estimation: It happens sometimes that I want to estimate a large number of equations with the same structure, without checking beforehand whether all the data involved are well behaved. I would ideally want to use something like
In the above using error counts might still be workable (although it also doesn't seem to work for every error), but if I have block of instructions which I want to "try" it quickly gets cumbersome to wrap each instruction with the error count syntax.
Cheers,
Boris
Hi there,
I am missing a few essential features in Eviews related to error handling, in particular an equivalent to the "try" command common to many programming languages.
First, I am aware that there is the possibility of using the error count. But this is often cumbersome.
WFCLOSE: wouldn't it be possible to change this command for Eviews to try to close any open WF? Currently I have to comment it in an out while debugging. Would it be possible to extend the "noerr" option to the case where no name is given? Btw, even in the case where a name is given the "noerr" options doesn't seem to work for me (in the code below). Am I doing something wrong?
Code: Select all
cd %path
wfclose(noerr) pr
wfcreate(wf=pr,page=raw) M 1980M1 2020M12
Code: Select all
for !k = 1 to K
try eq{!k}.ls {eqstructure}
next
Cheers,
Boris