Previous Topic Next topic Print topic


Unicode Variable-length Character Strings

Unicode variable-length character strings (NVARCHAR) are SQL data types similar to variable-length character strings, but are encoded using UTF-16 characters instead of single- or mixed-byte characters.

Host Variable Formats

OpenESQL and DB2 ECM
01 nvarchar1.
   49 nvarchar1-len        PIC S9(4)  COMP-5.
   49 nvarchar1-data       PIC N(200) USAGE NATIONAL.

01 nvarchar2.
   49 nvarchar1-len        PIC S9(4)  COMP.
   49 nvarchar1-data       PIC N(200) USAGE NATIONAL.
OpenESQL .NET Managed Runtime
In addition to the definition valid for OpenESQL, the following definition is also valid for the OpenESQL .NET Managed Runtime:
01 nvarchar3               string.
Previous Topic Next topic Print topic