Spool & Loops

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Spool & Loops

Postby tchaithonov » Fri Mar 04, 2011 2:03 pm

Hey there, how're things?

I am experimenting with the spool object and I wonder if I am trying to print a chart per variable from a model to a spool, how could I suppress a new chart window from popping up each time the loop reaches the printing point? Let me show you what I am talking about:

Code: Select all

%eqname = "eq_abc" %eqlist = {%eqname}.@varlist for !i = 1 to @wcount(%eqlist) %var = @word(%eqlist,!i) {%var}.line(p) next !i
As soon as the spool hits the {%var}.line(p), a new chart window pops up. I want it to print to the spool silently. What are my options?

Tchaithonov

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

Re: Spool & Loops

Postby EViews Gareth » Fri Mar 04, 2011 2:39 pm

Code: Select all

%eqname = "eq_abc" %eqlist = {%eqname}.@varlist for !i = 1 to @wcount(%eqlist) %var = @word(%eqlist,!i) do {%var}.line(p) next !i

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Spool & Loops

Postby EViews Jason » Fri Mar 04, 2011 3:02 pm

As an alternative to redirecting your printer output to a spool, you could use the spool 'append' command. So instead of

Code: Select all

do {%var}.line(p)
you could use

Code: Select all

myspool.append {%var}.line


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest