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!!
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."
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:
How to generate multiple samples from the multivariate normal distribution
Simulating data for a logistic regression model
Generate a random sample from a mixture distribution
The book Simulating Data with SAS contains hundreds of examples that show how to simulate efficiently in SAS.
I do not know; you have not posted your program and I cannot guess what you are doing.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.