How to Encode Controls for Unicode Sessions | Basic Teradata Query - Encoding Controls for Unicode Sessions - Basic Teradata Query

Basic Teradata® Query Reference

Product
Basic Teradata Query
Release Number
17.10
Published
February 2022
Language
English (United States)
Last Update
2022-02-03
dita:mapPath
nnw1608578382132.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

Workstation BTEQ includes two encoding controls for supporting Unicode®. The first control, I/O Encoding, handles the user interface for BTEQ. On input, that includes stdin and RUN files. On output, it includes stdout, stderr, and MESSAGEOUT files.

The second control, Session Character Set Encoding, handles the communication to and from the database along with the encoding of certain files, which include import files, export files, and source files for SQL (internal) stored procedures. Other external source files (for user-defined functions, user-defined methods, and external stored procedures) are an exception and must always be in the native encoding (ASCII for workstation clients or EBCDIC for mainframe clients).

Having two encoding values enables the user to customize the BTEQ execution environment. All files and communication are in the same encoding when not using Unicode. But when UTF8 or UTF16 are used as the session character set, the I/O encoding can be either UTF8 or UTF16.

The following diagram shows how the two encoding controls affect BTEQ.


Encoding controls used in Unicode sessions