Compare DBCS fields through the Open Query File (OPNQRYF) command

When comparing two fields or constants, fixed-length fields can be compared to variable-length fields as long as the types are compatible.

Table 1 describes valid comparisons for double-byte character set (DBCS) fields through the OPNQRYF command.

Table 1. Valid comparisons for DBCS fields through the OPNQRYF command
  Any numeric Character Hexa- decimal DBCS- open DBCS- either DBCS- only DBCS- graphic UCS2- graphic Date Time Time- stamp
Any numeric Valid Not valid Not valid Not valid Not valid Not valid Not valid Not valid Not valid Not valid Not valid
Character Not valid Valid Valid Valid Valid Not valid Not valid Valid Valid Valid Valid
Hexa- decimal Not valid Valid Valid Valid Valid Valid Not valid Not valid Valid Valid Valid
DBCS- open Not valid Valid Valid Valid Valid Valid Not valid Valid Valid Valid Valid
DBCS- either Not valid Valid Valid Valid Valid Valid Not valid Valid Valid Valid Valid
DBCS- only Not valid Not valid Valid Valid Valid Valid Not valid Valid Not valid Not valid Not valid
DBCS- graphic Not valid Not valid Not valid Not valid Not valid Not valid Valid Valid Not valid Not valid Not valid
UCS2- graphic Not valid Valid Not valid Valid Valid Valid Valid Valid Not valid Not valid Not valid
Date Not valid Valid Valid Valid Valid Not valid Not valid Not valid Valid Not valid Not valid
Time Not valid Valid Valid Valid Valid Not valid Not valid Not valid Not valid Valid Not valid
Time- stamp Not valid Valid Valid Valid Valid Not valid Not valid Not valid Not valid Not valid Valid