SORT= System Option: z/OS

Specifies the minimum size of all allocated sort work data sets.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Sort: SORT
PROC OPTIONS GROUP= SORT
Default: 0
z/OS specifics: All

Syntax

SORT=n | nK

Required Argument

n | nK
specifies the minimum size of sort work files that SAS allocates in the units specified by the SORTUNIT option.

Details

The SORT= option specifies the minimum size of all sort work files that SAS allocates. The units are specified by the SORTUNIT= option. If the DYNALLOC system option is specified, then any value that you specify for the SORT= option is ignored.

Example: Specifying the SORT Option

The following example, which includes descriptions of the options in the code, allocates three sort work data sets and specifies a primary space of two cylinders for each data set.
NODYNALLOC    /*Host sort does not support doing DYNALLOC for SORTWKxx*/
SORTPGM=HOST  /*Always use HOST sort utility*/
SORT=4        /*Unadjusted minimum PRI space for DYNALLOC*/
SORTWKNO=3    /*Allocate 3 sort work datasets*/
SORTUNIT=CYLS /*Allocation will be in CYLS*/
SORTDEV=SYSDA /*Device to allocate space on*/
SORTWKDD=SASS /*DDname prefix for allocation*/
   
Each of the three sort work data sets will have a minimum amount of primary space. SAS calculates the minimum space by dividing the value specified for the SORT= option by the number of sort files, and rounding up to the next whole number. Therefore, the three allocations are similar to the following JCL allocation:
//SASSWK01 DD SPACE=(CYL,(2)),UNIT=SYSDA
//SASSWK02 DD SPACE=(CYL,(2)),UNIT=SYSDA
//SASSWK03 DD SPACE=(CYL,(2)),UNIT=SYSDA