When using the Open Query File (OPNQRYF) concatenation function,
the i5/OS™ licensed program
assigns the resulting data type based on the data types of the fields being
concatenated. When double-byte character set (DBCS) fields are included in
a concatenation, the resulting data type is generally the same as concatenated
fields in a logical file, with some slight variations.
The following rules apply when using concatenation with DBCS fields through
the OPNQRYF command:
- If the concatenation contains one or more hexadecimal (H) fields, the
resulting data type is hexadecimal (H).
- If the concatenation contains one or more UCS2-graphic fields, the resulting
data type is UCS2-graphic.
- If all fields in the concatenation are DBCS-only (J), the resulting data
type is variable length DBCS-only (J).
- If the concatenation contains one or more DBCS (O, E, J) fields, but no
hexadecimal (H) or UCS2-graphic fields, the resulting data type is variable
length DBCS open (O).
- If the concatenation contains one or more variable length fields of any
data type, the resulting data type is variable length.
- If a DBCS-graphic (G) field is concatenated to another DBCS-graphic (G)
field, the resulting data type is DBCS-graphic (G).