17.00 - Using the MacroCharSet Feature - Parallel Transporter

Teradata® Parallel Transporter Application Programming Interface Programmer Guide

prodname
Parallel Transporter
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-2516-220K

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"