Page 1 of 1

Check if series exists in database

Posted: Thu May 24, 2018 11:08 am
by dravenous
Is there an efficient way to check if a series exists in a database and then if it doesn't have eviews look in a different database?

if "series" exists in db1 then fetch it
if not fetch from db2

something like that?

Re: Check if series exists in database

Posted: Thu May 24, 2018 12:37 pm
by EViews Gareth
Only with using the query command

Re: Check if series exists in database

Posted: Thu May 24, 2018 1:10 pm
by dravenous
That actually helped a lot, thanks gareth. I was able to use @wquery to achieve what I needed. This is unrelated, but when you are using logmsg to post messages, is there anyway to force them all into one line. For example

logmsg Hi
logmsg my
logmsg name
logmsg is
logmsg Fred

to display as

"Hi my name is Fred" opposed to

Hi
my
name
is
Fred

Re: Check if series exists in database

Posted: Thu May 24, 2018 1:37 pm
by EViews Gareth
Only by putting them into one string then sending that one string to logmsg