Thank you Rick. Great advise. I will incorporate all in my code going forward. Some prospective on this code. The m loop (15000) is a maximum or an upper bound. The loop could stop after 1 or up to 15000 iteration. That is why it is harder to estimate the total run time. Unfortunately this is the hard part of the code that I have very little control over, the sweet spot between 1 & 15,000. I've estimated the code to run about 96 hours based on initial smaller runs. I am adding some spatial signed-rank modules in step 2 and that where the code slows down. I considered doing this in R, but the IML modules written in SAS are not easily recoded in R.
... View more