How to use Eviews sample files?

For questions regarding programming in the EViews programming language.

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

gbc
Posts: 4
Joined: Mon Jul 22, 2013 5:48 am

How to use Eviews sample files?

Postby gbc » Mon Jul 22, 2013 5:58 am

I am trying to learn how to program.

I am using the example files Eviews has.

I go to sample files and copy the equation folder to the Desktop. Then, I open testarma and below "* fill series" I erase what is there and put: read(sheet1,a1) book2.xlsx v. Book2 is an excel file which is in the same folder as testarma and sub_arma. It has x observations in the first column (which I call it v)

Then, I also substitute in "*call subroutine" gnp by v.

I run it, and I get an error saying that eviews cannot find Book2 in the directory C:\...\grad\Book2.xlxs, which is a folder within the sample files where I originally got the programs from... But I copied them to a new folder.

Why is eviews looking for Book2 in that folder if I am working from another folder in my Desktop???

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

Re: How to use Eviews sample files?

Postby EViews Gareth » Mon Jul 22, 2013 8:04 am

The READ command cannot see .xlsx files. READ should not be used, ever. Use WFOPEN or IMPORT instead.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests