DBCS comparisons

A DBCS comparison is a comparison of two DBCS operands.

The following rules apply to a DBCS comparison:

  • If the DBCS operands are not the same length, the comparison is made as though the shorter operand were padded on the right with DBCS spaces to the length of the longer operand.
  • The comparison is based on the binary collating sequence of the hexadecimal values of the DBCS characters.