Help required with a program on simulation!

For questions regarding programming in the EViews programming language.

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

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Help required with a program on simulation!

Postby Amiro » Wed Aug 30, 2017 10:26 pm

Greeting community,

I am new to programming in Eviews. Recently someone has sent me a program to use with my own set of data.
However, the struggle began at the very first line. Whatever data path I enter, there's always an error. Could it be the format of the data of so?
Also, the data used in that program is panel data, so can someone advice me how to change the data into time series for one country?

What should I do?

I highly appreciate and help or input! :)
(program attached in txt format)

Sicnerely,
Amir,
Attachments
simulation -fan chart code.txt
(30.34 KiB) Downloaded 273 times

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: Help required with a program on simulation!

Postby EViews Matt » Thu Aug 31, 2017 9:21 am

Hello,

What is the error you receive?

Also, the expected input data format (as described in the program) isn't really a panel format, so that shouldn't be an issue.

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Re: Help required with a program on simulation!

Postby Amiro » Fri Sep 01, 2017 11:29 pm

Mind you, this is my first encounter with programming. The program is already written by someone else. So I started by entering the new data path, in the program, but it appears red and show that the path could not be found. Is it because of the format?

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: Help required with a program on simulation!

Postby EViews Matt » Sat Sep 02, 2017 6:26 am

Ah, you may be confusing syntax coloring with an error. In the program window, strings in double quotes are shown in red to help users visually identity them (and comments shown in green, keywords in blue, etc.). You won't know if there's an actual problem with the path you've entered until you run the program.

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Re: Help required with a program on simulation!

Postby Amiro » Tue Sep 05, 2017 9:45 am

That's right! I meant the error after running the program. The path seems to be not found, even though the data are in excel format. I even prepared the data in Eviews database format, nevertheless, still getting the same message!
Attachments
Path not found error.jpg
Path not found error.jpg (90.05 KiB) Viewed 7045 times

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

Re: Help required with a program on simulation!

Postby EViews Gareth » Tue Sep 05, 2017 9:47 am

Do you have a folder called "c:\users\sony\desktop\data" on your computer?
Follow us on Twitter @IHSEViews

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Re: Help required with a program on simulation!

Postby Amiro » Thu Sep 07, 2017 2:02 am

The data file in on the desktop called "data"

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

Re: Help required with a program on simulation!

Postby EViews Gareth » Thu Sep 07, 2017 5:37 am

In a folder called data?
Follow us on Twitter @IHSEViews

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Re: Help required with a program on simulation!

Postby Amiro » Thu Sep 07, 2017 11:41 pm

No, the file is called data. But I'm guessing, I should try to enter only the folder path!

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: Help required with a program on simulation!

Postby EViews Matt » Fri Sep 08, 2017 8:42 am

If you look a little further down the program, it ultimately attempts to read files "data\XXX_1.txt" and "data\XXXdebt.txt", which are relative to the path you specify in the cd statement. If that's not how your data is organized, you'll need to either change your data or change the program.

Amiro
Posts: 8
Joined: Tue Jan 31, 2017 9:39 pm

Re: Help required with a program on simulation!

Postby Amiro » Fri Sep 08, 2017 8:58 am

I do have these two files. I'll try again and get back!
Your input is highly appreciated!


Return to “Programming”

Who is online

Users browsing this forum: GFXFTS and 29 guests