SORT_MEMORY

This variable specifies the number of 64 KB blocks of memory that the SORT verb will try to allocate when it executes. The acceptable range is from 1 to 16384. The default value is 32. Using a value lower than the default can be useful if memory is tight on the host machine. Using a higher value may enhance SORT performance.

Take care, when increasing the SORT_MEMORY setting, to ensure that you do not assign too much memory to the runtime. For most operating systems, the memory used by SORT is not returned to the system. While the runtime may use the memory for other purposes, this memory is not available to other programs until the runtime exits.

The SORT verb will attempt to allocate the amount of memory specified in SORT_MEMORY. If the requested amount is not available, the runtime will return an out of memory error.