It looks like your program is using a macro loop to run simulations. You might want to read this article on techniques for performing efficient simulations in SAS: Simulation in SAS
I wish I could use BY processing. However, the EM algorithm is iterative and switches between PROC IML and many datastep. Each simulation requires a different number of iterations. I'm not using any PROCs that utilize BY processing.
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!