17.00 - Using the MacroCharSet Feature - Parallel Transporter

Teradata® Parallel Transporter Application Programming Interface Programmer Guide

Product
Parallel Transporter
Release Number
17.00
Published
November 30, 2020
Language
English (United States)
Last Update
2020-11-18
dita:mapPath
fcz1544831938753.ditamap
dita:ditavalPath
obe1474387269547.ditaval

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"