Programming Data Merging

For questions regarding programming in the EViews programming language.

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

canboardrp
Posts: 17
Joined: Tue Mar 06, 2012 9:11 am

Programming Data Merging

Postby canboardrp » Fri Apr 20, 2012 6:52 am

I've got an existing database and for one of the programs I've written, I'm truing to import new data for some of the variables from an excel file. However, I can't figure out how to program that so the final series I end up with is merger of the database series and the excel file series. I'm not sure how clear this explanation is so I've got an example below.

I'm trying to end up with a merged series for CTDDNT. The approach I've been trying is

Code: Select all

'Upload data from database source FETCH(D={%SOURCEDATA}Database\OUTLOOK.EDB) CTDDNT
(Here the series CTDDNT runs from 1978 2000)

Code: Select all

import P:\Test.xls
(Here the series CTDDNT runs from 2001 to 2009)

However when I program it like this, I just get the 2001-2009 series. How can I merge the two?

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

Re: Programming Data Merging

Postby EViews Gareth » Fri Apr 20, 2012 7:47 am

Try:

Code: Select all

import(mode=md) p:\test.xls
or try the mode=u option instead.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest