DD Statements That Describe the Sort Work Files

VSAM data set space available for the sort routine can be identified by specifying two ddnames with the WORKFILES parameter and supplying two DD statements that describe the work files to be defined. Each work file DD statement should be coded:
//ddname DD  DSNAME=dsname,VOL=SER=volser, 
//           UNIT=devtype,DISP=OLD,AMP='AMORG' 

Exception: WORKFILES is ignored when DFSORT is available to do the sorting of the alternate index and you have not overridden the default by specifying NOSORTCALL.

ddname
as specified in the WORKFILES parameter. If you do not specify the WORKFILES parameter and you intend to provide VSAM data set space for external sort work files, identify the work file DD statements with the names IDCUT1 and IDCUT2.
UNIT=devtype
type of direct access device on which the volume is mounted. You can specify a generic device type (for example, 3380) or a device number (for example 121). You cannot specify SYSDA.
DISP=OLD
Required.
AMP='AMORG'
Required.

If BLDINDEX is used interactively in a TSO environment, these sort work file DD statements must be in the logon procedure.