I still want to focus on the values. Your Year column, is it a JMP Date value, formatted to just show the year portion of the date, or is it an integer?
What are the specifics about the CASEID column. It is being displayed as a character column. Is this the case or is it a numeric column being displayed using a Hex format?
If it is character, there can be blanks or unprintable characters in the string that might be causing the mismatches. If you use the match flag, it is fairly easy to check this out when you find the row with the match flag of 1 and compare it to the row from the match flag 2 row that should have matched with it.
Jim