Copying a Group

For questions regarding programming in the EViews programming language.

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

dean.hong
Posts: 12
Joined: Fri Jun 03, 2016 10:24 am

Copying a Group

Postby dean.hong » Fri Jun 03, 2016 10:37 am

Hi,

I am trying to copy groups from country workfiles (i.e. us_q,uk_q, and jp_q...etc.) into a new workfile page named "calculation." But every time I run the program, the group data are not being copied. Below is the simplified version of my code for your reference. As can be seen in screenshots below, data are lost somehow. Thanks in advance!

Code: Select all

%start_ls="2013M1" %end = "2016M3" pagecreate(wf={%wfname}, page="calculation") q %start_ls %end smpl %start %end group calc_{%x} caicomp_{%x} caihat_{%x} copy {%x}_q\calc_{%x} calculation\calc_{%x}
Attachments
Capture.PNG
Capture.PNG (23.25 KiB) Viewed 2737 times

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

Re: Copying a Group

Postby EViews Gareth » Fri Jun 03, 2016 11:03 am

A group doesn't have any data other than the names of the series it contains. Thus when you copy a group, by default, only the names of the series are copied.

There are options on copy to copy the series as well as the group.

http://www.eviews.com/help/helpintro.ht ... -copy.html


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests