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}
