getmacrodata add in for fred data

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

zsears
Posts: 9
Joined: Wed Jan 30, 2013 12:22 pm

getmacrodata add in for fred data

Postby zsears » Wed Aug 28, 2013 8:19 am

Hi I am trying to extract fred data using the following commands:

include "filepath"
dbopen(type=fred) fred
fetch fred::{%codes}

and in the external file I define %codes as a list of fred mnemonics
%codes = "var1 var2 var3"
This works fine for several thousand variables.

However, for an even longer list I thought to make the list vertical to avoid any horizontal limits and also to be easier to read, as in
%codes = "var1 _
var2 _
var3"

But this separation of the lines does not work in the list. I have tried "_" " _" " _ ", that is no space and spaces before and after the underscore.

Any suggestions to try.

Thanks

Zach Sears

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

Re: getmacrodata add in for fred data

Postby EViews Gareth » Wed Aug 28, 2013 9:21 am

You can't use an underscore inside quotes to denote the new line.

If you really want to put them on a new line, you'd have to do:

Code: Select all

%codes = "var1 " +  _
"var2 " + _
"var3 " + _
"var4 "
Follow us on Twitter @IHSEViews

zsears
Posts: 9
Joined: Wed Jan 30, 2013 12:22 pm

Re: getmacrodata add in for fred data

Postby zsears » Wed Aug 28, 2013 9:28 am

got it thanks.


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 24 guests