Expected Mode - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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