N-period forecast variance decomposition

Hi,
Can some friends tell me hou to take N-period forecast-variance decomposition by dynare?
thanks a lot.
liu bin