JCL requirements for the HD Sort utility
The following figure shows generic JCL for executing the HD Sort utility.
//SORT EXEC PGM=HDSORT
//STEPLIB DD DISP=SHR,DSN=bmc.xxx.load
// DD DISP=SHR,DSN=IMS.RESLIB
//DFSRESLB DD DISP=SHR,DSN=IMS.RESLIB
//IMS DD DISP=SHR,DSN=ims.dbdlib.new
//RECON1 DD DISP=SHR,DSN=your.recon1 <===for HALDB only; required
//RECON2 DD DISP=SHR,DSN=your.recon2 <===for HALDB only; required
//RECON3 DD DISP=SHR,DSN=your.recon3 <===for HALDB only; required
//SORTIN DD DISP=SHR,DSN=database.hdunld.unsorted,DISP=SHR
//SORTOUT DD DSN=database.hdunld.sorted,DISP=(NEW,CATLG),UNIT=TAPE
//BMCPRINT DD SYSOUT=*
//PLUSIN DD *
SORT DBD(HDAMDB)
//SORTWK01 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SORTWK02 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SORTWK03 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SORTWK04 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SORTWK05 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SORTWK06 DD SPACE=(CYL,(75,10)),UNIT=SYSDA
//SYSOUT DD SYSOUT=*
An explanation of the JCL follows:
EXEC | Required. The EXEC statement must specify PGM=HDSORT. The HD Sort utility does not run under the IMS region controller (DFSRRC00). |
---|---|
STEPLIB DD | Required. Include the following libraries in the concatenation:
|
IMS DD | Required. Describes the IMSVS.DBDLIB data set that contains the DBD that will be used to sort the unsorted unload file into sequence. |
RECONx DD | Required for HALDBs. Defines the DBRC RECON data sets. |
SORTIN DD | Required. Defines the input data set that contains the HD Unload-format records that you want the HD Sort utility to sort. The HD Unload data set can be created by the following utilities:
|
SORTOUT DD | Required. Defines the output data set to contain the sorted HD Unload-format records. You can use this data set as input to the following utilities:
|
DFSPARM DD | Required when you use the HD Sort utility with DFSORT and VLSHRT(YES) is the DFSORT default. Specify the following statement: //DFSPARM DD * OPTION NOVLSHRT |
BMCPRINT DD | Optional. For more information, see BMCPRINT-DD. |
SORTWKnn DD | Optional. If you specify the SORTWORK option, the Reload function dynamically allocates the sort work data set. Defines the sort work areas that your site’s sort/merge utility uses to sort the HD Unload-format records. For more information, see the documentation for your site’s sort/merge utility. |
SYSOUT DD | Required. Defines the print data set to contain messages from the sort/merge utility. It is normally a SYSOUT-type data set. |
PLUSIN DD | Required. Defines the data set that contains the control statements for the HD Sort utility. You must include a control statement in the PLUSIN data set to identify the DBD name of the database to sort. You can also include keywords to override the existing HDAM or PHDAM randomizer parameters. These keywords allow you to run the DBDGEN after the HD Sort utility step; however, you normally should run the DBDGEN before the HD Sort utility step. |
The following table describes the valid keywords.
PLUSIN DD keywords
Keyword | Description |
---|---|
DBD | Required. Specify the DBD name of the database. This name normally refers to the new DBD. There is no default value. If you enter a different DBD name on the control statement than the DBD that was used to create the HD Unload data set, the HD Sort utility uses the randomizing parameters from the DBD that is named in the control statement. |
DFSDBUX1 | Optional. Specify whether to use the DFSDBUX1 user exit. For more information, see DFSDBUX1. |
DESCCODE | Optional. Specify a descriptor code. For more information, see MONITOR-MONUSERS-ROUTCODE-DESCCODE. |
FLATFILE(nnnnn) | Optional. This keyword indicates that the data set specified in the SORTIN DD contains records with HDAM root keys at offset 'nnnnn'.
|
HDPRINT | Optional. Specify an output data set. For more information, see xxxPRINT. |
KEYLEN | Optional. Specify a value (1-3 digits) for the length (in bytes) of the root segment’s key field. Valid values range from 1 to 255 (inclusive). Leading zeros are not required. The default value is the key length that is specified in the DBD. |
LOWLEVEL | Optional. This keyword tells the HDSORT utility to sort the unload file by using all segment key fields instead of only the root key field (or the root key's randomized value if HDAM). |
MONITOR | Optional. Specify a monitoring interval. For more information, see MONITOR-MONUSERS-ROUTCODE-DESCCODE. |
MONUSERS | Optional. Specify a TSO user ID to receive monitoring messages. For more information, see MONITOR-MONUSERS-ROUTCODE-DESCCODE. |
NBLOCKS | Optional. Specify a value (1-8 digits) for the maximum RBN allowed for the database. This keyword is ignored if the DBD is not HDAM or PHDAM. Valid values range from 1 to 16777215 (inclusive). Leading zeros are not required. Do not code commas within the value (for example, code 215610 instead of 215,610). The default value is the maximum RBN that is specified in the DBD. |
NRAPS | Optional. Specify a value (1-3 digits) for the number of RAPs in each CI or block in the RAA of an HDAM or PHDAM database. This keyword is ignored if the DBD is not HDAM or PHDAM. Valid values range from 1 to 255 (inclusive). Leading zeros are not required. The default value is the number of RAPs that are specified in the DBD. |
RMNAME | Optional. Specify the name (1-8 characters) of an HDAM or PHDAM randomizing module. This keyword is ignored if the DBD is not HDAM or PHDAM. The default value is the name of the randomizer as it is specified in the DBD. |
SORTWORK | Optional. Specify a sort work data set. For more information, see SORTWORK. |
USERHDR | Optional. Specify a user-defined prefix. For more information, see USERHDR. |
Related topic