Is it possible to determine if a record buffer has changed without storing
the whole buffer?  A checksum doesn't seem to be enough, since rearranging
two fields in the buffer would yield the same checksum result.   That is, if
the LAST-NAME and FIRST-NAME fields get switched, the buffer has changed but
a checksum might not pick that up.

I'm hoping someone has thought this through before.  Is there an available
algorithm that can calculate a hash that would detect any buffer change, or
an extremely high percentage of them?  (I'm aware of the CBTtape offerings
but don't know if they would work well for this.)

Proposed Usage:  Get buffer, calculate hash, save hash.  Get buffer some
time later, calculate hash, determine if buffer changed.

Any suggestions would be appreciated.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to