Page 1 of 1

getmacrodata add in for fred data

Posted: Wed Aug 28, 2013 8:19 am
by zsears
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

Re: getmacrodata add in for fred data

Posted: Wed Aug 28, 2013 9:21 am
by EViews Gareth
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 "

Re: getmacrodata add in for fred data

Posted: Wed Aug 28, 2013 9:28 am
by zsears
got it thanks.