DBCS large character strings enable you to store large amounts of DBCS data in columns.
Host Variable Formats
- OpenESQL
-
01 dbcs1.
49 dbcs1-len PIC S9(9) COMP-5.
49 dbcs1-data PIC N(32000) USAGE DISPLAY-1.
01 dbcs2.
49 dbcs2-len PIC S9(9) COMP-5.
49 dbcs2-data PIC G(32000).
- The level number for group items containing only two elementary items must be 49. The first item is a four-byte field declared
with usage COMP or COMP-5 that represents the effective length of the character string. The length field can be signed or
unsigned. The second item is a PIC
n DISPLAY-1 or PIC G data type, where
n is an integer representing the length of the field that holds the data.
- SQL statements must reference the group name.
- OpenESQL
.NET Managed Runtime
- In addition to the definitions valid for OpenESQL, the following definition is also valid for the OpenESQL
.NET Managed Runtime:
01 dbcs3 string.
For more information on using host variables with international data, see
OpenESQL Globalization Best Practices.