02-17-2018 05:58 AM
I'm running simulations and the number of repetitions is 100.
When I run the program 100 times, n=30 it works but then when I increase n to n=100 then the out of memory for symbols error shows up.
I try changing the symsize and worksize .. still it didn't work..
I don't get my problem..
Thankful for any help I can get!!
02-17-2018 06:44 AM
The number of symbols should not change when you increase the number of simulations. Please post the exact error message that you are getting along with your program.
If you are concatenating the results from successive iterations, you might be running low on RAM. (However, usually there is no need to concatenate large matrices.) If the RAM is insufficient, use the -MEMSIZE option to increase your RAM, as shown in this article "Large matrices in SAS/IML."
02-17-2018 07:03 AM
02-17-2018 07:27 AM
Because SAS/IML has control structures such as DO loops and IF/THEN statements, it is almost never necessary to use macro programming in IML simulation programs. If you are creating a bunch of symbols like x&i and y&k, then you are using lots of memory because you are keeping the results from every step of the simulation.
Here are some examples of simulation in SAS/IML. Perhaps they will be helpful:
The book Simulating Data with SAS contains hundreds of examples that show how to simulate efficiently in SAS.