DFSHDC40

DFSHDC40 is one of the IBM-supplied randomizers. It takes any IMS key and uses a hash technique to create a 4-byte value, which is then converted into a block number within the database and a root anchor point (rap) number within the block.

Hints

The hash technique DFSHDC40 processes the segment key 4 bytes at a time. For large keys, the amount of CPU used can become quite noticeable, 5% and more of the CPU. If you absolutely need the long key for uniqueness, there is little you can do about this. No other good randomizers use less CPU than DFSHDC40 and still produce a good random spread of output values.

Reference Sources

More information is available in the IMS DBSOURCE Library Data Set. See your IMS systems programmer.