Hi,
is there a function like @isobject() that allows to know whether an object exists in a database without having to fetch it?
Thanks,
Javier
Object exists in database
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Object exists in database
Unfortunately not.
Re: Object exists in database
Hi Janvier,
The following example might help your question. My databse name is XYZ which stores series with name like EST.GGINTR, EST.IRL etc. but some series do not exist in my database. So I use a combination of @wlookup and @wintersect to serve like @isobject. An example of the code is below.
Hope this helps.
Joe
The following example might help your question. My databse name is XYZ which stores series with name like EST.GGINTR, EST.IRL etc. but some series do not exist in my database. So I use a combination of @wlookup and @wintersect to serve like @isobject. An example of the code is below.
Code: Select all
!row=1
table(!row,100) results 'create a table to store the result
%object_list = @wlookup("XYZ::*") 'get a full list of object names from the XYZ databases
for %country EST ISL ISR KOR LUX SVN SVK
for %variable GGINTR IRL GDP IRS GNFL 'a list of variable of interest
%my_string_{!row} = @wintersect(%country + "." + %variable, %object_list) 'check any intersect between my variable of interest and the full list
if %my_string_{!row} <> "" then
setcell(results, 1,1,"exists outputs")
table results(!row+1,1) = %my_string_{!row} + " exists"
endif
!row = !row + 1
next
nextJoe
Who is online
Users browsing this forum: No registered users and 1 guest
