pageselect in subroutine

For questions regarding programming in the EViews programming language.

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

Posts: 17
Joined: Thu Dec 11, 2014 7:11 am

pageselect in subroutine

Postby salahaddin » Sat Oct 28, 2017 2:53 pm

Dear All,
I have a subroutine like following where I am using pagenames string. Unfortunately, when I call the subroutine pageselect command gives an error. It says the page was not found. I call the program in this way: call ce_t_t_1("page1", a, series01, 6)
Could you please help. thanks in advance.

subroutine ce_t_t_1(string %pagenames, matrix data, series sername, string %colnumber)

pageselect %pagenames
matrix(@rows(data)+5,@columns(data)) predictions_b

matrix(@rows(data)+5, @columns(data)) predictions_u

smpl @all

for !i=1 to @obssmpl
for !j=1 to @columns(data)

smpl if sername=data(!i,{%colnumber})

series ser0{!j}_{!i}=ser0{!j}(+1)




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

Re: pageselect in subroutine

Postby EViews Gareth » Mon Oct 30, 2017 8:00 am

Code: Select all

pageselect {%pagenames}
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 13 guests