I would increase the "MEMSIZE=2G" statement in your config file to some much larger number plus add the "OPTIONS FULLSTIMER;" statement. After it runs successfully, check the SAS Log to see how much memory was actually used. Then you can alter the MEMSIZE value to a number slightly higher than what is needed. One thing to remember, is that SAS will allocate whatever memory is needed up to the MEMSIZE value. If you have a MEMSIZE=50G in your config file and only need 10G, then SAS will only allocate 10G, not the 50G that is in the config. You also should know how much memory is even available on your server....128G, 256G, etc. What step are you even running? PROC SORT? DATA STEP HASH programming step? PROC SQL with GROUP BY? Are you JOINing multiple datasets? How large are the input file(s)? These are things you need to know to help determine how much memory you might need.
... View more