Enable Language Environment (LE) Support

You enable Language Environment (LE) support by using either the INITCALL"MFLEINIT" Compiler directive, or by adding a call to MFLEINIT in your code. The method used depends on how you intend to use the support.

Enterprise Server (Excluding JCL)

For all other applications running in Enterprise Server, set the environment variable ES_LE370_SUPPORT=Y.

.NET Managed COBOL

The Language Environment utilities are available in managed COBOL (DOTNET) applications. For verifiable code applications (ILVERIFY) reference the 'MicroFocus.SEE.LE370.Safe' assembly in your application. For non-verifiable applications (ILGEN) reference the assembly 'MicroFocus.SEE.LE370' in your application.

To add the assembly to your application:

  1. In the Solution Explorer.
    • You can either:
      1. Right-click your project.
      2. Click Add Reference.
    • Or:
      1. Right-click References in your project.
      2. Click Add Reference.
    This opens the Add Reference dialog box.
  2. Click Assemblies > Extensions.
  3. Check the required assembly.
  4. Click OK.

In your COBOL program insert a call to MFLEINIT to load the LE support.