Typically, increasing SORTSPACE will improve the overall performance of SORT operations. This can be improved further by the use of SORTSCHEME when the files to be sorted are over 1GB.
If you are receiving COBRT105 Memory allocation error (Fatal) errors during your SORT operations, you should set SORTTEMPSPACE, and reduce the value of SORTSPACE; see SORTTEMPSPACE for more details.
Specify the amount of memory in one of the following formats:
The default value is 1,048,576 bytes (1MB).
The minimum value is 65,536 bytes (64KB).
The maximum value is 4,294,967,295 bytes (4GB - 1 byte).
SORTSPACE=64M SORTSPACE=2G SORTSPACE=1000000