17.05 - Expected Mode - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)

Provides 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, Vantage 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, Vantage 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.