Historical decomposition in dynare

I have my estimation and simulation dynare code ready. I’m trying to get the the historical decomposition, which indicates the contribution of each shock to the volatility of variables over a certain sample period. Does anyone know how to generate this in dynare? Thanks!

Try shock_decomposition(options) variable;

http://www.dynare.org/manual/index_30.html