17.10 - Using the MacroCharSet Feature - Parallel Transporter

Teradata® Parallel Transporter Application Programming Interface Programmer Guide

Parallel Transporter
Release Number
Release Date
June 2021
Content Type
Programming Reference
Publication ID
English (United States)

Use the following syntax to enable TD_MACROCHARSET:

conn -> AddAttribute(TD_MACROCHARSET, "Yes");
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"
  • "KANJI1"