repeatedly executing the same operations

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

loooooo
Posts: 11
Joined: Wed Dec 14, 2011 4:11 am

repeatedly executing the same operations

Postby loooooo » Wed Dec 14, 2011 4:31 am

Hi,

I've been using Eviews for years but new to programming.
I've obtained a code from this forum and modified as follows:

Code: Select all

%file = "C:\Desktop\MyData.xls" wfopen(page=ALL) %file for %s MO AXP BMY CSX CSC CAG COP DOW DD FE GIS HIG HPQ HON IBM IP KFT MCD MET NWS SWY SPG TGT KR TWX UNP WMT DIS D pageload(page=%s) %file range=%s next
It's working perfectly fine except the sheet labelled as "D", for which Eviews reports an error. I don't know why.

In addition, there are few more things I'd like to carry out:
(1) For each tab (the name of which being "CAG" for example), I want to split them into three sub-sample periods (01/03/2005 - 06/30/2007, 07/01/2007 - 06/30/2009, 07/01/2009 - @last), and name each tab "CAG_pre", "CAG_crs", and "CAG_pst". This needs to be done over all 30 tabs in my Excel file.
(2) On each tab created from performing (1), I want to run VAR(3) and VEC(3). Suppose the variables are "prc", "vol","sp", and "dp".

Your help would be much appreciated, particularly for someone like me who tried to run the code above in the command line, instead of saving it as a prg file just an hour ago :(

Thanks,
Jason
Last edited by loooooo on Wed Dec 14, 2011 7:31 am, edited 2 times in total.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: repeatedly executing the same operations

Postby startz » Wed Dec 14, 2011 7:25 am

D is a reserved word. Use another name.

loooooo
Posts: 11
Joined: Wed Dec 14, 2011 4:11 am

Re: repeatedly executing the same operations

Postby loooooo » Wed Dec 14, 2011 7:34 am

Thanks startz. That was why!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests