17.10 - Using the MacroCharSet Feature - Parallel Transporter

Teradata® Parallel Transporter Application Programming Interface Programmer Guide

Product
Parallel Transporter
Release Number
17.10
Release Date
June 2021
Content Type
Programming Reference
Publication ID
B035-2516-061K
Language
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"
  • "UNICODE"
  • "KANJI1"
  • "KANJISJIS"
  • "GRAPHIC"