SORTWORK


The SORTWORK keyword is valid with the BUILD, CLONE, RELOAD, REORG (Online Reorg function and Reorg function), and GROUP commands and with the HD Sort utility.

You can specify the number of SORTWORKnn data sets, the number of primary cylinders, and the unit name for this option in the environment setup member (DLIGSET0). You can specify all parameters in PLUSIN. The following table describes the keyword.

To do this

Specify this in PLUSIN

Dynamically allocate sort work data sets.

SORTWORK(nn,cccc,unitName,dataclas,mgmtclas,storclas,alloctype,secalloc,sortpref)

Internal default: (3,100,SYSDA)

The SORTWORK keyword enables you to set parameters for dynamically allocated sort work data sets. If you do not specify the SORTWORK keyword, the default is used. You can specify the SORTWORK keyword as follows:

SORTWORK(nn,cccc,unitName,dataclas,mgmtclas,storclas,alloctype,secalloc,sortpref)

The SORTWORK parameters are positional, and they must be separated by commas.

Parameter

Description

nn

Number of SORTWKnn data sets (0 through 99). The default value is 3. If you specify 0, no data sets are allocated.

cccc

Number of primary cylinders to allocate for each data set (1 through 32767). The default value is 100.

unitName

Unit name for sort work data sets. Specify any valid unit name. The default value is determined by what you specified in the environment setup member.

dataclas

SMS data class construct. Specify any valid data class name. The default value is determined by what you specified in the environment setup member.

mgmtclas

SMS management class construct. Specify any valid management class name. The default value is determined by what you specified in the environment setup member.

storclas

SMS storage class construct. Specify any valid management class name. The default value is determined by what you specified in the environment setup member.

alloctype

Allocation type. The acceptable values are C, CYLS, T, and TRKS.

secalloc

Number of secondary cylinders to allocate for each data set (numeric from 1 to 9999).

sortpref

Exactly two characters, a unique prefix for any SORTWORK DDs to be used by this command.

The SORTWORK keyword applies to each sort.

For the secondary index sorts, the utility dynamically allocates the sort work data sets ddnames in the following format:

SRTxWKnn

The variablex is the sort task that is running (1, 2, or 3) andnn is the number of sort work data sets.

If you specify SORTWORK(0, x,x) and the amount of data to be sorted is too large for an incore sort, you must include SRTxWKnn DD statements in the JCL.

If you specify PARALLEL(YES), the Index Build function chooses the optimum number of sorts (as many as three).

Warning

Note

The installation defaults for your sort product might affect how the SORTWORK keyword works. If the results you get from the SORTWORK keyword are not what you expected, check the sort product’s options. To override the sort product’s options, add the appropriate DD statements for your sort product to the BMC job step. For DFSORT, add a DFSPARM DD statement; for SyncSort, add a $ORTPARM DD statement.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Online Reorg for IMS 5.1