The tuhash utility performs a byte-by-byte evaluation of the input file and returns a resulting numerical value (called the hash value) to the screen. You use this utility to generate values for monthly updates that are delivered with updates. You then compare the values to the ones provided. If the values match, the GAV table are installed properly. This process can be applied to any file.
The syntax of the tuhash command is:
tuhash -i <input_file> -l <lrecl>
-i <input_file> |
Specifies the input file name. |
-l <lrecl> |
Specifies the record length of the file. The default record length is 1. For larger files, using a record length of 1 makes the hash program run very slowly. We recommend that you specify the logical record length of the file if it is known. Otherwise, specify a number that can be divided evenly into the file size. |
To run the hash utility
Go to a command prompt.
Change to the directory that contains the files you want to validate.
Enter the tuhash command for the first file you want to validate. For example:
tuhash -i CAINDEX2.tbl -l 2
Press Enter. The utility returns the final hash value as shown in Sample TUHASH Results.
Open the appropriate hash text file with a text editor.
Locate the line that corresponds to the file to which you applied the hash utility.
Compare the value in the file with the value in the command window.
If the values match, the file integrity is valid. If the values do not match, contact Customer Support.
Repeat the process for each GAV table file you installed.
Figure 1. Sample TUHASH Results