Fetching Multiple Series from EIA Online DB
Posted: Mon Oct 19, 2015 9:09 am
Hello,
I'm having an issue accessing data from the EIA database through EViews. I'm hoping you can replicate it on your end and recommend solutions.
Consider the following short program:
The performance of this program changes every time I run it in EViews. Each time I run it, it breaks at a different point (i.e. on a different series), and gives an error message in the form of "Database Error: data values provided for object...are not in a supported format". I encourage you to try running my short program again 4-5 times and observe the point at which the fetch() command throws an error.
Any thoughts on what could be causing this? I'm perplexed by the fact that the code breaks at a different series in the fetch command each time I run it.
I am running EV9 Enterprise (September 14 2015 build) on Windows 7, and I have the EIA database in my registry with a valid API key.
Thanks,
-James
I'm having an issue accessing data from the EIA database through EViews. I'm hoping you can replicate it on your end and recommend solutions.
Consider the following short program:
Code: Select all
'Create workfile
wfcreate(wf=TEMP, page=DATA_A) a 1990 2020
pagecreate(DATA_Q) q 1990 2020
pagecreate(DATA_M) m 1990 2020
'Fetch fuel price data from EIA
for %freq A Q M
pageselect DATA_{%freq}
fetch(d=EIA) STEO.WTIPUUS.{%freq} STEO.NGHHMCF.{%freq} STEO.NGHHUUS.{%freq} STEO.BREPUUS.{%freq}
nextAny thoughts on what could be causing this? I'm perplexed by the fact that the code breaks at a different series in the fetch command each time I run it.
I am running EV9 Enterprise (September 14 2015 build) on Windows 7, and I have the EIA database in my registry with a valid API key.
Thanks,
-James