I can´t open mod files with dynare on octave

Hi all,

I´m a new user of dynare and Octave. I´ve instaled the dynare v4.0.4 and octave 3.2.2, but I cannot run the .mod files. I typed the folling commands on octave:

addpath c:\dynare\4.0.4\matlab
mark_as_command dynare
dynare rbc.mod

And always give the same thing

“error: DYNARE: can´t open rbc.mod
error: called from
error: c:\dynare\4.0.4\matlab\dynare.m at line 85, column 3”

I hope you can help me, Márcio.

Dear Márcio,

are you sure you are in the right “Current directory” when you call the command *dynare rbc.mod *?

Pavel

Thank you for your help. Nevertheless, I have other dougth, after run the algoritm the octave shows the fowlling error mesenge: “structure has no member maximum_lag”. Could you give-me some advise?

Best, Márcio.

Dear Marcio,

can you show me PrintScreen shot? Either attach it here or send me by email: pakopublic (at) gmail (dot) com.

Regards,
Pavel

After Mario sent me his code we found out that the problem was caused by the command “clear all” in the beginning of the filename.mod. This command was put into the middle of the filename.m file. So some of the declared variables ware erased.

Pavel