As you should have discovered, I have been working a lot on the Eviews database functions lately. I was just reading the manual, trying to find a way to automate economic data gathered from various sources (Fred via database function, stock indices via the new add-in for instance) and store them into a different database (where my workfiles will eventually link to for data). I wrote a couple of lines and then I have no idea what to do next:
Code: Select all
dbopen(type=fred) fred
for %data FEDFUNDS GDP DSPI PMSAVE
' ??????
next
I know I could use the import function, just like how the add-in is done; in fact, since Fred's txt file URLs are much simpler, it may be even easier than what's done for the stock download add-in. The problem with that is with the multi-line headers in all of Fred's files. I tried and failed to have any success in removing headers like this for csv/txt files. So, if you have any workarounds/new ideas about how this could be done, please let me know. Thanks.
Tchaithonov
