Page 1 of 1

Hash file

Posted: Mon Oct 29, 2007 7:14 pm
by cnew
How to customize the hash file algorithm and also can somone tell me how to create static hash file. Thanks in advance.

Posted: Mon Oct 29, 2007 7:43 pm
by ArndW
cnew - welcome to DSXChange.

there are just under 20 different builtin algorithms to hash the key into a bucket for hashed files. Only one of these, type 30, is a dynamic hashed file, all others are static hashed files.

The DSXchange Search is a powerful tool and if you use it on this subject you will find posts such as this one to answer your question.

The details of hashed files can be read from the IBM documentation for UniVerse (which is available for free download) - the two products are still almost identical. If there isn't sufficient information available in DSXChange you can read up on the intricacies of hashed files there and post any questions here - many of the members here come from the old Information/UniVerse worlds and a couple still consult in that space as well.

Posted: Mon Oct 29, 2007 10:44 pm
by ray.wurlod
There is no scope whatsoever for custom hashing algorithms. The supplied ones, particularly types 2, 18 and GENERAL and SEQ.NUM, work very well. They have been tuned to perfection over the years. To create a static hashed file choose a type between 2 and 18 inclusive. Use the Hashed File Calculator to generate the commands.