Dynare time series of exogenous variable

Dear Dynare community,

I’m new to Dynare but have found many support here. I truly appreciate all the kind help here.

I wonder is it possible to feed into Dynare a time series of exogenous variables? For all the exogenous variables I declared, I have a sequence of values that’s being collected from data. Then, after some periods, all exogenous variables are constants until it reaches the steady state.

For example, tauc = [0,11, 0.13, 0.12, 0.11, 0.10] for the first 5 periods. Then afterwards, it stays as the last available value, which is 0.10, until the steady state.

I wonder how to let Dynare read a sequence of exogenous variables and then use the last value of the sequence until the steady states.

Any help would be greatly appreciated. The mod file is attached.

Thank you so much!
mymodel6.mod (3.0 KB)

Is the shock sequence fully anticipated or do the shocks happen as a surprise each period?

Dear Prof. Pfeifer, thank you for your reply. The shock is fully anticipated, and we are working in a deterministic context.

Then you can simply use perfect foresight simulations where you use initval and endval to set the initial and terminal condition and a shocks-block to set the shock trajectory.