SORTHIDAM control statement

Start of changeSpecifies whether to run the sort processing before loading a HIDAM or a PHIDAM.End of change

Start of changeThe HIDAM or PHIDAM unloaded data must be in the order of root keys. If it is not in that order because the root keys are changed after unloading, you must specify SORTHIDAM=YES. This control statement is optional. If you do not specify this control statement, SORTHIDAM=NO is used. End of change

Read syntax diagram
               .-NO--.   
>>-SORTHIDAM=--+-YES-+-----------------------------------------><

NO
Does not run the sort process.
YES
Runs the key sequential sort process before the reload process. The sort is done in the order of the root keys.
Restrictions:
  • This control statement cannot be used for the Load API.
  • The key value that is sorted by SORTHIDAM=YES cannot be changed by the user exit routine that is specified in the reload step.
  • Compressed root keys cannot be sorted. Specify DECOMPRESS=YES for the IMS™ HP Unload job to expand the compressed keys.
  • HPSRSVX2 exit cannot run with SORTHIDAM=YES.
Note: Start of changeFor a HIDAM database, DFSORT allocates intermediate storage data sets dynamically for the sort process with sizes estimated based on the primary allocation size of DBDS. For a PHIDAM database, the size is estimated based on the number of partitions. If you specify the number of unloaded records in the RECNUM control statement, this value supersedes other values and is used for estimation. If you need to adjust the size, specify the SORTWKnn DD statements explicitly.End of change