I have a fairly large program that is about 11,000 lines of macro definition and then a ~50 line triple nested loop which essentially runs the whole program by calling to all of the macros, the inner-most loop iterates from 1 to 7, the outter most loop iterates from 1 to 3, and middle loop iterates anywhere from 1 to 33 times. I.e: do i = 1 to 3; do j = 1 to 33; do k = 1 to 7; if it is run with the second loop as do j = 1 to 2; or do j = 1 to 3; it runs okay, but when it gets much more than this SAS freezes every time, it will just say "Running: Exec_All_Models - Running PROC SGPLOT" or something at the bottom frozen, and it will not continue executing, I have to kill the process via task manager and restart SAS every time. It is producing lots of output files including pdfs etc, so I expect it to take a bit of time to run, but it shouldn't just completely freeze after it's gotten past a certain point, it's re-running all the same code just with different data sets. I'm not sure what to do, is there any way to get SAS to handle this or do I just have to always manually edit the loop dimensions and run the program in pieces every time? Thanks!
... View more