error handling

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

spradhan
Posts: 8
Joined: Thu Sep 24, 2015 12:55 am

error handling

Postby spradhan » Thu Jun 09, 2016 7:55 am

Hi,
I'm fetching series using command
for !w = 1 to @wcount(%t1)
%t2=@word(%t1,!w)
fetch(link,m) {%t2}
next
for some 256 expected and different values for %t2.
For some of those values, series would not be available in database, so eviews shows error and loop is terminated instantly.
How can I override the error and continue fetching series till end of the loop?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13319
Joined: Tue Sep 16, 2008 5:38 pm

Re: error handling

Postby EViews Gareth » Thu Jun 09, 2016 8:05 am

Setmaxerrs
Follow us on Twitter @IHSEViews

spradhan
Posts: 8
Joined: Thu Sep 24, 2015 12:55 am

Re: error handling

Postby spradhan » Thu Jun 09, 2016 5:57 pm

Hi Gareth,
This worked well.
Thanks so much for this help!
Santosh


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 33 guests