CHECKSUM: Computing a Hash Sum

How to:

CHECKSUM computes a hash sum, called the checksum, of its input parameter, as a whole number in format I11. This can be used for equality search of the fields. A checksum is a hash sum used to ensure the integrity of a file after it has been transmitted from one storage device to another.

Syntax: How to Compute a CHECKSUM Hash Value

CHECKSUM(buffer)

where:

buffer

Is a data buffer whose hash index is to be calculated. It can be a set of data of different types presented as a single field, in one of the following data type formats: An, AnV, or TXn.

Example: Calculating a CHECKSUM Hash Value

CHECKSUM calculates a checksum hash value.

CHECKSUM(PRODUCT_CATEGORY)

For Accessories, the result is -830549649.

WebFOCUS

Feedback