saving all equations as tables in a workfile

For questions regarding programming in the EViews programming language.

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

adarshad
Posts: 97
Joined: Wed Sep 05, 2018 10:32 am

saving all equations as tables in a workfile

Postby adarshad » Thu Apr 29, 2021 6:27 pm

is there any command to save all equations as tables in a workfile with the same name as equation

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

Re: saving all equations as tables in a workfile

Postby EViews Gareth » Thu Apr 29, 2021 7:51 pm

A combination of @wlookup, a for loop and

Code: Select all

freeze(tabname) eqname.results
Follow us on Twitter @IHSEViews

adarshad
Posts: 97
Joined: Wed Sep 05, 2018 10:32 am

Re: saving all equations as tables in a workfile

Postby adarshad » Fri Apr 30, 2021 9:09 am

Code: Select all

%eqlist=@wlookup("*","equation") 'make a list of all equations in workfile
for !i=1 to @wcount(%eqlist) 'cycle through the list one at a time
freeze(tabname) eq{!i}ardl_a.results 
!rowcounter = !rowcounter+1
next


what is tabnamehere..my workfile is ARDL&

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

Re: saving all equations as tables in a workfile

Postby EViews Gareth » Fri Apr 30, 2021 10:21 am

Follow us on Twitter @IHSEViews

adarshad
Posts: 97
Joined: Wed Sep 05, 2018 10:32 am

Re: saving all equations as tables in a workfile

Postby adarshad » Sun May 02, 2021 12:48 pm

Code: Select all

!rowcounter =1
%eqlist=@wlookup("*","equation") 'make a list of all equations in workfile
for !i=1 to @wcount(%eqlist) 'cycle through the list one at a time
freeze(table{!i}ardl_a) eq{!i}ardl_a.results 
!rowcounter = !rowcounter+1
next


I used this program to store my equations
IS THERE ANYWAY THAT WE CAN COPY ALL TABLES TO WORD DIRECTLY FROM A WORKFILE

startz
Non-normality and collinearity are NOT problems!
Posts: 3699
Joined: Wed Sep 17, 2008 2:25 pm

Re: saving all equations as tables in a workfile

Postby startz » Sun May 02, 2021 5:25 pm

You might try saving the tables in a spool and then saving the spool in .rtf format.

adarshad
Posts: 97
Joined: Wed Sep 05, 2018 10:32 am

Re: saving all equations as tables in a workfile

Postby adarshad » Mon May 03, 2021 7:33 am

ANY EXAMPLE WILL BE HIGHLY HELPFUL

adarshad
Posts: 97
Joined: Wed Sep 05, 2018 10:32 am

Re: saving all equations as tables in a workfile

Postby adarshad » Mon May 03, 2021 12:09 pm

thankyou it helped me alot;;its easier instead of copying one by one


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 10 guests