contents.gifindex.gifprev1.gifnext1.gif

TRANSLATE-TO-ANSI

TRANSLATE-TO-ANSI - This variable has meaning only on graphical systems such as Windows. It is used only if:

gt490000.gif you are using the graphical system's font to accept data, and

gt490000.gif your application was originally built for a character-based system, and

gt490000.gif you use some non-ASCII characters, and

gt490000.gif you are experiencing difficulty with the display of the non-ASCII characters.

Set the variable TRANSLATE-TO-ANSI to "1" to turn on a character set translator. Then, if you use the graphical system's font for accepting data, the runtime will translate from one character set to the other for you. Data that is accepted from the screen will be translated into the OEM character set before it is stored on disk. Data stored in the OEM character set will be translated to the ANSI character set before it is displayed on screen.

Setting TRANSLATE-TO-ANSI to "0" (default) turns off the translation process.

This variable can be set from within a COBOL program with the SET verb. For example:

SET ENVIRONMENT "TRANSLATE-TO-ANSI" TO "YES".