Create series list from workfile

For questions regarding programming in the EViews programming language.

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

schtono
Posts: 3
Joined: Tue Dec 15, 2009 8:32 am

Create series list from workfile

Postby schtono » Tue Dec 15, 2009 11:03 am

Hi there,

I wonder if it is possible to create a string containing the names of all series objects in the current workfile (using EViews 6).

I read on the forum that the way to go is to create a group using the wildcard "*" and then iterating through all series, but I already fail at creating said group with a wildcard.

Any help is highly appreciated!

All the best
Philipp

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

Re: Create series list from workfile

Postby EViews Gareth » Tue Dec 15, 2009 11:06 am

In EViews 6 the only thing you can do is this:

Code: Select all

group g *
Which will create a group object with all of the series in the workfile in it.

Then you can loop through the names of the series with:

Code: Select all

for !i=1 to g.@count %name = g.@seriesname(!i) next

schtono
Posts: 3
Joined: Tue Dec 15, 2009 8:32 am

Re: Create series list from workfile

Postby schtono » Tue Dec 15, 2009 11:37 am

Hi Gareth,

thanks a lot, that was exactly what I was looking for.

All the best
Philipp

bcchen
Posts: 31
Joined: Tue May 02, 2017 8:34 am

Re: Create series list from workfile

Postby bcchen » Tue May 02, 2017 11:46 am

hey guys,
I wonder if there is any updated code for this same issue under EView9?

Thanks!
BC

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

Re: Create series list from workfile

Postby EViews Gareth » Tue May 02, 2017 12:10 pm

@wlookup


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests