Graphic datatypes

Open ServerConnect programs can use graphic datatypes as well as character datatypes to process double-byte data. Workstation clients, however, use only character datatypes to represent characters; graphic datatypes are not used with the supported workstation character sets.

The length of mainframe graphic datatypes is the number of double-byte characters, whereas the length of character datatypes at both the mainframe and the workstation is the number of bytes. Therefore, when converting kanji from character to graphic datatypes, be aware that the length of a kanji string is twice as long for character datatypes as it is for graphic datatypes.

For a more detailed explanation of length considerations when converting Japanese characters, see Table 2-14.


TDSVARYGRAPHIC

Use TDSVARYGRAPHIC rather than TDSVARGRAPHIC. TDSVARYGRAPHIC objects include the “LL” length specification that precedes the data.


DB2 LONG VARGRAPHIC datatypes

Programs using DB2 data can send DB2 LONG VARGRAPHIC data as TDSIMAGE.