Using the LANSA Open non-English language translation file
|Product/Release:||LANSA Open - All Versions|
|Abstract:||When using LANSA Open in a non-English environment, a translation file is used to handle the PC - AS/400 data translation|
|Submitted By:||LANSA Technical Support|
LANSA Open uses translation files for translating PC and host system data. The data on the PC is in ASCII format whilst the data on the AS/400 host system is in EBCDIC format.
By default, LANSA Open uses the English set of characters for its data translation. If LANSA Open is being used for a non-English environment, LANSA Open uses a translation file to handle the data translation. This file is called LCOECHAR.DAT. A sample LCOECHAR.DAT can be found in the SAMPLES directory. This sample file contains the translation for Japanese data.
LCOECHAR.DAT must reside in a directory in the PATH statement in your AUTOEXEC.BAT file. We recommend that you install the file in the WINDOWS directory.
If LANSA Open finds the LCOECHAR.DAT file, it will use the data contained in the file to perform its data translation. The data in LCOECHAR.DAT is only read when LANSA Open is initially loaded. The data is then stored in memory and is used for subsequent data translation.
The data in the file must conform to the following standard:
Single Byte Character Set Translation
For Single Byte Character Set (SBCS) translation (eg French, German), each line in LCOECHAR.DAT must have the form:
where hh is the hexidecimal code of a host character (EBCDIC code) and cc is the equivalent hexidecimal code of the character on the PC (ASCII code).
Double Byte Character Set Translation
For Double Byte Character Set (DBCS) translation (eg Chinese, Japanese, Korean), each line in LCOECHAR.DAT must have the form:
where hhhh is the hexidecimal code of a host double-byte character (EBCDIC code) and cccc is the equivalent hexidecimal code of the double-byte character on the PC (ASCII code).
Note: LANSA Open cannot check the validity of the data contained in LCOECHAR.DAT. It is the responsibility of the user to ensure that the contents of LCOECHAR.DAT are correct.