I used SAS 9.4 in a laptop to run some simulation studies. At beginning, the program runs very fast, just keep running and running. After the program ran for several hours, it become much slower.
For example, at beginning, it will take the program 2 hrs to finish one simulation scenario, but it may take two days to finish similar scenario some time later. I checked the log and found that SAS will stop for several minutes and do nothing after it finishes one simulation data sets, then it will continue. Any ideas about what happened, and how I can resolve it?
Thanks for the reply. I read that article, actually I used DO in my simulation codes instead of BY. Your 'BY' method is efficient, but since I need Bootstrap method to calculate 95% CI, so I cannot concatenate the data sets together and use 'BY' method, since it is too big. Actually, my problem is not code specific. When the codes generate the first several hundred simulated data set using DO loop, the program runs very fast, but as time goes on, it looks like something is stored in the memory that slows down the program. That is what I observed.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.