Page 1 of 1

Spool comment in loops

Posted: Thu Jan 14, 2016 10:57 am
by eviewsnc
Hi all,

I am trying to use the description of each variable in a group as the comment in my spool. I know spool comments are normally inside inverted commas, is there any way to set the comment for a spool to be the description of a series?

Thanks

Code: Select all

for !i=1 to levels_real.@count %1 = levels_real.@seriesname(!i) graph graph_{%1} {%1} spool.append graph_{%1} spool.comment untitled0{!i} {{%1}.label(d)} spool.name untitled0{!i} {%1} next

Re: Spool comment in loops

Posted: Thu Jan 14, 2016 12:09 pm
by EViews Jason
try

Code: Select all

%description = {%1}.@attr("Description") spool.comment untitled0{!i} {%description}

Re: Spool comment in loops

Posted: Fri Jan 15, 2016 3:03 am
by eviewsnc
Thanks Jason,works perfectly!!