Copy (merge) from one Aremos database to another

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

Posts: 7
Joined: Tue Aug 23, 2016 9:56 am

Copy (merge) from one Aremos database to another

Postby mmiller2 » Wed Aug 22, 2018 7:57 am

There seems to be an issue when I try to copy (with merge option) series objects directly from one Aremos database to another. The code below demonstrates that the additional observation in series x from abank2 is not properly copied and merged with existing series x in abank1. Would you be able to fix this in the next patch?

Code: Select all

db(type=aremos) abank1.bnk
db(type=aremos) abank2.bnk
wfcreate(wf=work, page=a) a 1901 2099

smpl 1968 2016 ' create x in abank1
genr x = 1
copy(o) x abank1::x
delete x
close abank1

smpl 2017 2017 ' create x in abank2
genr x = 2
copy(o) x abank2::x
delete x
close abank2

smpl @all

' copy and merge x from abank2 to abank1
dbopen(type=aremos) abank2.bnk
dbopen(type=aremos) abank1.bnk
copy(m) abank2::x.a abank1::x.a

fetch(db=abank1) x
smpl 2016 2017
x.sheet ' correct result should be 1 2

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

Re: Copy (merge) from one Aremos database to another

Postby EViews Gareth » Wed Aug 22, 2018 8:56 am

Documentation bug. The merge option does not apply to database->database copies.
Follow us on Twitter @IHSEViews

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests