SORTSIZE= System Option

Specifies the amount of memory that is available to the SORT procedure.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Categories: Sort: Procedure options

System administration: Memory

System administration: Performance

PROC OPTIONS GROUP= MEMORY

PERFORMANCE

SORT

See: SORTSIZE System Option: UNIX in SAS Companion for UNIX Environments

SORTSIZE System Option: Windows in SAS Companion for Windows

SORTSIZE= System Option: z/OS in SAS Companion for z/OS

Syntax

SORTSIZE= n | nK | nM | nG | nT | hexX | MIN | MAX

Syntax Description

n | nK | nM | nG | nT
specifies the amount of memory in terms of 1 (byte); 1,024 (kilobytes); 1,048,576 (megabytes); 1,073,741,824 (gigabytes); or 1,099,511,627,776 (terabytes). For example, a value of 4000 specifies 4,000 bytes and a value of 2m specifies 2,097,152 bytes. If n=0, the sort utility uses its default. Valid values for SORTSIZE range from 0 to 9,223,372,036,854,775,807.
hexX
specifies the amount of memory as a hexadecimal number. This number must begin with a number (0-9), followed by an X. For example, 0fffx specifies 4095 bytes of memory.
MIN
specifies the minimum amount of memory available.
See:Values for MIN will vary, depending on your operating environment. For details, see the SAS documentation for your operating environment
MAX
specifies the maximum amount of memory available.
See:Values for MAX will vary, depending on your operating environment. For details, see the SAS documentation for your operating environment

Details

Generally, the value of the SORTSIZE= system option should be less than the physical memory available to your process. If the SORT procedure needs more memory than you specify, the system creates a temporary utility file.
PERFORMANCE NOTE: Proper specification of SORTSIZE= can improve sort performance by restricting the swapping of memory that is controlled by the operating environment.

See Also

Procedures:
SORT Procedure in Base SAS Procedures Guide
System Options: