Spool Objects

For questions regarding programming in the EViews programming language.

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

norbert
Posts: 2
Joined: Thu Sep 02, 2010 2:29 am

Spool Objects

Postby norbert » Wed Sep 22, 2010 3:20 pm

Hi!

I have two questions related to spool objects (in Eviews7.1):
1) I can't make embedded spool objects, for example this code doesn't work:

Code: Select all

create u 10 series s=rnd spool sp sp.append(name=s_n) s.line sp.insert(loc=s_n, offset=last) s.bar
2) Is there any command with which spool objects can be hidden?

Thanks in advance,
Norbert

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

Re: Spool Objects

Postby EViews Gareth » Wed Sep 22, 2010 4:19 pm

1.
I'm not sure your question makes sense. The offset=last option only works if you have embedded a spool object inside another spool object. The code example you provided did not embed a spool inside a spool. The following example shows it working ok:

Code: Select all

create u 10 series s=rnd series x=rnd spool sp sp.append(name=s_n) s.line spool xp xp.append(name=sp_n) sp xp.insert(loc=sp_n, offset=last) x.bar
2. What does "hidden" mean?

norbert
Posts: 2
Joined: Thu Sep 02, 2010 2:29 am

Re: Spool Objects

Postby norbert » Wed Sep 22, 2010 11:43 pm

Sorry for my English.
The question : Can I hide spool objects (with a command)?

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

Spool Objects

Postby EViews Gareth » Wed Sep 22, 2010 11:55 pm

Can you define what you mean by hide?

sbssx4
Posts: 3
Joined: Fri Mar 30, 2012 4:50 am

Re: Spool Objects

Postby sbssx4 » Fri Mar 30, 2012 5:00 am

Hi, can you embed spool object (in your example) sp inside xp without declaring spool object sp?
I can do this by clicking(in spool object xp tool bar) proc/append/new spool/ then type sp. So that sp only shows in spool object xp but not in the workfile window. Can you use a code to do it please?

1.
I'm not sure your question makes sense. The offset=last option only works if you have embedded a spool object inside another spool object. The code example you provided did not embed a spool inside a spool. The following example shows it working ok:

Code: Select all

create u 10 series s=rnd series x=rnd spool sp sp.append(name=s_n) s.line spool xp xp.append(name=sp_n) sp xp.insert(loc=sp_n, offset=last) x.bar
2. What does "hidden" mean?

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

Re: Spool Objects

Postby EViews Gareth » Fri Mar 30, 2012 8:53 am

No, it has to be declared first.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests