Page 1 of 1

CRC32 Value different from project to project

Posted: Tue Sep 18, 2007 7:32 am
by lenny
Hello,

I am using crc32 function to calculate row value for type2 changes.
I did crc32 on one data set in development project and used the same data set
in UAT to do crc32. I expected both the values to be same but they are different.

In short crc32 value in development is different from UAT for the same row

Thanks in advance

Regards

Posted: Tue Sep 18, 2007 7:42 am
by lenny
sorry i forgot add my question.

why is it different from project to project?

Posted: Tue Sep 18, 2007 11:26 am
by DeepakCorning
As far as I know it should not be , check if there are some extra spaces or any extra characters in ur UAT data?

Posted: Tue Sep 18, 2007 4:35 pm
by ray.wurlod
It should not matter what the actual generated CRC value is, provided it remains consistent for all given values on any one platform.

Posted: Tue Sep 18, 2007 7:06 pm
by ArndW
The mathematics of a CRC32 computation are bit-oriented so should not be different unless you are using different code. Are you certain your versions of DataStage are exactly identical?

Posted: Tue Sep 18, 2007 8:58 pm
by ray.wurlod
Or different byte order, or different separator, or different column order, or maybe other differences; even the character order can be significant.