15.10 - Expected Mode - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Provide reasonable default widths for a character data type and client form-of-use. The expected export width multiplier for this case is 3 with an adjustment of 2.

In Expected mode, Teradata Database multiplies Unicode characters by 2 to calculate the number of bytes required to export Unicode strings to KanjiSJIS_0S because n Unicode characters translate to 2*n bytes in KanjiSJIS_0S.

For another example, suppose you want to export Unicode characters to KanjiEBCDIC5035_0I in Expected mode. In this case, Teradata Database multiplies the Unicode strings by 2 to determine the number of bytes to export, and, if the client is a mainframe, adds an additional 2 bytes to account for the Shift Out and Shift In characters needed for KanjiEBCDIC5035_0I to express any double byte characters if the client is a mainframe. This is because n Unicode characters are expected to take 2*n +2 bytes in KanjiEBCDIC5035_0I.