series "sort" command problem in my program

For questions regarding programming in the EViews programming language.

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

Tom Simpson
Posts: 19
Joined: Fri Oct 09, 2009 1:14 am

series "sort" command problem in my program

Postby Tom Simpson » Mon Jan 17, 2011 8:42 pm

Hi all,

I'm writing a program which uses a lot of sorting of series (reasonably large loops etc). Whenever I use the series "sort" command (series_name.sort) the series being sorted is opened on the screen (like using the "show") command. Is there any way I can suppress this? It seems to make the program run extremely slowly and is a bit aggravating as I end up with millions of series opened on screen (I don't want to delete these series btw so deleting them in the program is not an option).

When I use the sort command with a group (eg. "group.sort(1,2,3)" or "freeze(table_name) group.sort(1,2,3)" it doesn't open the group being sorted. This only seems to be a problem with series sorting.

Any help would be greatly appreciated, my boss wants this quick!

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

Re: series "sort" command problem in my program

Postby EViews Gareth » Mon Jan 17, 2011 9:00 pm

Looks like there isn't a way to stop this currently. I'll see if we can fix that though.
Follow us on Twitter @IHSEViews

Tom Simpson
Posts: 19
Joined: Fri Oct 09, 2009 1:14 am

Re: series "sort" command problem in my program

Postby Tom Simpson » Mon Jan 17, 2011 9:19 pm

Hmm ok. I kludged past it using group sorting but it's definitely something I'd appreciate for future use (will probably be using this function a lot over the next year)

Thanks for your prompt reply!

EViews Glenn
EViews Developer
Posts: 2671
Joined: Wed Oct 15, 2008 9:17 am

Re: series "sort" command problem in my program

Postby EViews Glenn » Tue Jan 18, 2011 10:23 am

For now, just use the close command right after the sort. It's klugy, but probably easier than doing the group kluge.

Code: Select all

a.sort
close a


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 27 guests