Graphic host variables in C and C++ routines
wchar_t
process code format.
Using NOCONVERT means that graphic data manipulated in SQL statements in the routine will also be in DBCS format, matching the format of the parameter data.
With WCHARTYPE NOCONVERT, no character code conversion occurs between
the graphic host variable and the database manager. The data in a
graphic host variable is sent to, and received from, the database
manager as unaltered DBCS characters. If you do not use WCHARTYPE
NOCONVERT, it is still possible for you to manipulate graphic data
in wchar_t
format in a routine; however, you must
perform the input and output conversions manually.
CONVERT can be used in FENCED routines, and it will affect the graphic data in SQL statements within the routine, but not data passed through the routine's parameters. NOT FENCED routines must be built using the NOCONVERT option.
In summary, graphic data passed to or returned from a routine through its input or output parameters is in DBCS format, regardless of how it was precompiled with the WCHARTYPE option.