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
getmacrodata add in for fred data
Moderators: EViews Gareth, EViews Moderator, EViews Esther
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: getmacrodata add in for fred data
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:
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
Re: getmacrodata add in for fred data
got it thanks.
Who is online
Users browsing this forum: No registered users and 35 guests