Updating series in the database

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

NurfatimaD
Posts: 20
Joined: Wed May 23, 2012 10:04 pm
Location: Almaty, Kazakhstan

Updating series in the database

Postby NurfatimaD » Wed Jan 09, 2013 1:35 am

Hello to everyone!

I have a code that imports time series data from Excel files and then stores them to the database. However, i have a question about how does EViews merge the data. If for example, when I have updated the data in Excel and by chance made a mistake in the historical part, will EViews "update" that mistake as well? Or does it just leave the historical data untouched in the database and adds only the most recent data update?

Thank you!

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

Re: Updating series in the database

Postby EViews Gareth » Wed Jan 09, 2013 8:41 am

It depends upon which options you use when doing the import and store.

NurfatimaD
Posts: 20
Joined: Wed May 23, 2012 10:04 pm
Location: Almaty, Kazakhstan

Re: Updating series in the database

Postby NurfatimaD » Thu Jan 10, 2013 12:28 am

It depends upon which options you use when doing the import and store.
The code for import is just the following

Code: Select all

read(first data cell, s=sheet name,t if need to view series in rows) "path to the excel file" the number of series to read
When I store the data I use the following:

Code: Select all

store(d="path to the database", 2) the name of the series to store

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

Re: Updating series in the database

Postby EViews Gareth » Thu Jan 10, 2013 9:10 am

If possible, you should use the IMPORT command rather than the READ command. The IMPORT command offers merging options.

By default the STORE command will only over-write values that exist in the workfile series. Any values in the database that do not exist in the workfile will be left alone. The "o" option changes this.

agandini
Posts: 4
Joined: Thu Jun 11, 2009 6:06 pm
Contact:

Re: Updating series in the database

Postby agandini » Wed Jan 16, 2013 6:59 am

Dear NurfatimaD,

Can you please post the entire code (or email me)?
I am looking for a simple way to update series inside Eviews, and I think your method is very good. It would be awesome to auto-update via excel.

Thanks,

Agandini


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests