Loop over permanent shocks

Hi, the necessary approach has been discussed in