Add Adis Support to the Project

Add Adis support to your project to alter the default behavior of the enhanced ACCEPT and DISPLAY statements in Micro Focus COBOL.

Enterprise Developer ships with a version of Adis that contains a configuration intended for modernizing RM/COBOL applications.

  1. In your file system, browse to %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\etc.

    %Program

    The directory containing ADISCTRL appears.

  2. Drag this file into Eclipse, and drop it on the project name when the cursor changes to The Cursor Drop icon.

    The File Operation dialog box appears.

  3. Ensure Copy Files is selected (so that a copy of the original file is created in the project, and not simply a link to the original file), then click OK.

    A copy of the file is added to the project.

  4. To select the correct Adis configuration:
    1. Using an Enterprise Developer command prompt, navigate to the project directory (that is, the directory containing ADISCTRL).
    2. Type adiscf, then press Enter.

      The adiscf.exe window appears.

    3. Press F6, then select the RM2VCOB configuration.

      The RM2VCOB configuration in Adiscf

      See Appendix B - ADISCTRL settings for RM2VCOB, Appendix C - Adis key mappings for RM2VCOB, and Appendix D - Adis key function mapping for RM2VCOB for a full list of the settings.

    4. Press Esc twice to exit.
      Note: if you are prompted to exit without saving, press N, F4, then Esc twice again.
  5. Right-click your project in the COBOL Explorer view and select Properties.

    The Properties for <project-name> dialog box appears.

  6. In the left-hand pane, select Micro Focus > Build Configurations > Events.

    The Events appear in the right-hand pane.

  7. In the Post-build event command line box, type copy ${basedir}\ADISCTRL ${basedir}\New_Configuration.bin\ADISCTRL , then click Apply.
    Note: If your project builds to another location other than the default New_Configuration.bin directory, you will need to change the above command accordingly.
  8. Click OK.
    Note: If you need to configure the keyboard keys for this environment, see Keyboard Configuration Utility (Keybcf).