Monte Carlo exercise

Hello,
I am using a simple 3 equation hybrid NK model and I want to simulate the model 10,000 times to obtain 10,000 sample of 500 observations of my endogenous variables. I am new to Dynare and has tried many things but I don't see to be able to figure out how to do this. I was wondering whether it is possible to do this within Dynare and how I would save the results of each loops?. My .mod file is attached. Thank you.
I am using a simple 3 equation hybrid NK model and I want to simulate the model 10,000 times to obtain 10,000 sample of 500 observations of my endogenous variables. I am new to Dynare and has tried many things but I don't see to be able to figure out how to do this. I was wondering whether it is possible to do this within Dynare and how I would save the results of each loops?. My .mod file is attached. Thank you.