Syntax Rules for Describing the Data Stream
<standard_code_spec> ::= ASCII | UCS2 | UTF8
In the code_spec, you define the default value for the interpretation of data streams that contain plain text values. The default value in the Loader is ASCII.
When you load or unload data, you can transform it between various code types.
If you load/unload ASCII data into an ASCII database or UCS2 data into a Unicode database, the data does not have to be converted.
The following combinations are possible (internal database data type and external data type):
Internal Database Data Type |
Possible code attributes for data streams with plain text values when unloading |
(VAR)CHAR ASCII |
ASCII, UCS2, UTF8 |
(VAR)CHAR UNICODE |
UCS2, UTF8 |
(VAR)CHAR BYTE |
BINARY, ASCII (HEX), UCS2 (HEX), UTF8 (HEX) |
Numerical data types |
ASCII, UCS2, UTF8 |
Internal Database Data Type |
Possible code attributes for data streams with plain text values when loading |
(VAR)CHAR ASCII |
ASCII |
(VAR)CHAR UNICODE |
ASCII, UCS2, UTF8 |
(VAR)CHAR BYTE |
BINARY, ASCII, UCS2 (HEX), UTF8 (HEX) |
Numerical data types |
ASCII, UCS2, UTF8 |
If you want to use a particular code page for the ASCII to UCS2 conversion, you can specify the page with the SET command SET <code_page_spec >.
When you load/unload LONG data, you determine the default values by using the syntax rule longfile_code_spec.