Calling mod-files from subfolders
Posted: Mon Jul 28, 2014 9:21 pm
I am calling dynare codes from inside a matlab m-file and was hoping to call a mod-file from a subfolder, eg.
this gives the error message
I wanted to do this to keep my current folder clean. The aim was that rather than creating all of the additional dynare files (eg. RBC.log, RBC_static.m, RBC_dynamic.m, etc.) in my current folder they would be created within the ./CodeOutput/ folder. Is there a more direct way to do this? Is running codes from subfolders an intended feature in future versions of Dynare?
- Code: Select all
dynare ./CodeOutput/RBC.mod
this gives the error message
- Code: Select all
It seems you are trying to call a mod-file not located in the "Current Folder". This is not possible (the / symbol is not allowed in the name of the mod file).
The file RBC[.mod,.dyn] could not be located!
I wanted to do this to keep my current folder clean. The aim was that rather than creating all of the additional dynare files (eg. RBC.log, RBC_static.m, RBC_dynamic.m, etc.) in my current folder they would be created within the ./CodeOutput/ folder. Is there a more direct way to do this? Is running codes from subfolders an intended feature in future versions of Dynare?