Admin Production rocket
Current Publication

The code set translation environment variable

Enterprise Developer for Visual Studio 2017 V7.0
Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

The code set translation environment variable

Set the MFCODESET variable in your environment to control the code sets being translated.

To use your product's inbuilt translation module for EBCDIC applications, you must use the MFCODESET environment variable to specify the EBCDIC code set you require.

This variable can be set on the command line or within the IDE, and must take the following form:

  • To translate between the ASCII character set and the EBCDIC character set for a specific country code, at the command prompt, enter:
    set MFCODESET=nnnn

    where nnnn is either a supported 4-digit country code or the code set number as detailed in Supported country codes, or the code set number of a customized translation module.

    Note: If you set an invalid country code, the DEFAULT country code setting is used.
  • To translate between a specified ASCII character set and a specified EBCDIC character set, at the command prompt, enter:
    set MFCODESET=xxxxyyyy

    where xxxx is a 4-character hexadecimal string representing the EBCDIC CCSID, and yyyy is a 4-character hexadecimal string representing the ASCII CCSID. If the specified CCSID translation table is not currently installed, refer to To install a CCSID translation table.

Example:

To run a program under the CHARSET"EBCDIC" Compiler directive, and have it translate its output between your current ASCII character set and UK English EBCDIC:
set MFCODESET=0285
To run a program under the CHARSET"EBCDIC" Compiler directive, and have it translate its output between the MS-WIN LATIN-1 code set (CCSID 1252) and the COM EUROPE EBCDIC code set (CCSID 37):
set MFCODESET=002504E4