Overwriting an object

For questions regarding programming in the EViews programming language.

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

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Overwriting an object

Postby w_nawfal » Mon Jan 03, 2011 3:16 pm

Hello all

is there a way to instruct eviews to overwrite an exsisting object with a newly fetch one?

and can this be done via the "rename" command as well?

hope you've all had a good break & happy new year

Wes

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

Re: Overwriting an object

Postby EViews Gareth » Mon Jan 03, 2011 3:45 pm

Probably, but without knowing more details, hard to tell you how.

How are you getting the object into EViews?

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Re: Overwriting an object

Postby w_nawfal » Tue Jan 04, 2011 8:17 am

hi Gareth

i've discoved that when using the fetch command - i can fetch an object more than once without any problems (i.e. the second time an object is retrieved it is saved over the previous version)

as for using the "rename" command - i've bypassed that entirely by using the "series" comand

for example

instead of saying rename seriesA Wes1

i now use series Wes1 = series A, because this way, if previously in the program i had a series called Wes1 this command will allow me to save over it.

thank you for your follow up

Wes

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Overwriting an object

Postby EViews Glenn » Tue Jan 04, 2011 11:16 am

You should take care to note the sample in use when doing the reassignment. If you have a subsample in place when you do the reassignment, you can get a splice of the series where it has some of the old values along with the newly assigned values.

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Re: Overwriting an object

Postby w_nawfal » Tue Jan 04, 2011 3:28 pm

very true Glenn ~ you make a very good point.

i've actually made it a habit to define the sample first before every fetch command - thus any and all mods made to series apply to the time frame i want.

thanks again.

Wes


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest