Previous Topic Next topic Print topic


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 mfleinitin your code, or by setting the ES_LE370_SUPPORT environment variable. The method used depends on how you intend to use the support.
Enable LE support depending on your application type:

JCL

LE support is enabled by default unless the name of the program you are running begins with 'MF'. In which case, set the INITCALL"mfleinit" Compiler directive.

CICS

For CICS applications, set the environment variable ES_LE370_SUPPORT=Y.

Other Native COBOL Use

For any other method, for example, an IMS or standard COBOL program, set the INITCALL"mfleinit" Compiler directive.

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.

Managed JVM

The Language Environment utilities are also available in managed code applications. To use them, include the mfle370.jar file on the classpath.
  • On Windows:
    • For 32-bit environments use the mfle370.jar file located at %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\bin.
    • For 64-bit environments you must use a 64-bit JVM. The mfle370.jar file is located at %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\bin64.
  • On UNIX:
    • For 32-bit environments use the mfle370.jar file located at $COBDIR/lib.
    • For 64-bit environments you must use a 64-bit JVM. The mfle370_64.jar file is located at $COBDIR/lib.
In your JVM COBOL program, include the Compiler option ILUSING"com.microfocus.le370". For a Java program include the statement import com.microfocus.le370.*;.
Previous Topic Next topic Print topic