Preprocessor issue with mensual dates with month > 9 passed to daynre into macrovariables
I think I just stumbled into an interesting bug while passing macrovariables containing mensual dates to dynare.
In a very simple mod: SimpleMod.mod
I have (a dummy model) and the instruction: Toto = @{MensualDate};
I call this .mod with dynare as follows: dynare('SimpleMod.mod', '-DMensualDate="2005M10"');
And get an 'invalid expression' error on SimpleMod.driver
because what gets written in the driver for the Toto = @{MensualDate};
instruction is : Toto = dates('2005M1')0;
2005M9 works, 2005M11 results into Toto = dates('2005M1')1;
and 2005M12 results into Toto = dates('2005M1')2;