Using the MacroCharSet Feature - Parallel Transporter

Teradata Parallel Transporter Application Programming Interface

Product
Parallel Transporter
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2516
lifecycle
previous
Product Category
Teradata Tools and Utilities

Using the MacroCharSet Feature

Use the following syntax to enable TD_MACROCHARSET:

conn -> AddAttribute(TD_MACROCHARSET, "Yes");

Note: You can also specify “Y,” “yes,” or “y” in the syntax shown above.

Syntax to be followed for providing column data for the schema object when TD_MACROCHARSET is enabled is shown below:

Schema-> AddColumnWithCharSet(char*, TD_DataType, char*, TD_ColumnSize, TD_ColumnPrecision, TD_ColumnScale)

For example:

schema -> AddColumnWithCharSet("Associate_Name", TD_CHAR, "UNICODE", 25); 

The column MacroCharSet name for any character column only accepts values from the follow set of values:

  • "LATIN"
  • "UNICODE"
  • "KANJI1"
  • "KANJISJIS"
  • "GRAPHIC"