Previous Topic Next topic Print topic


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.

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

  1. In your file system, browse to %COBDIR%\etc\rm (Windows) or $COBDIR/etc/rm (UNIX).

    The directory containing ADISCTRL appears.

  2. Drag this file into Eclipse, and drop it on the project name when the cursor changes to (Windows) or (UNIX).

    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 verify that the correct Adis configuration is selected:
    1. Using a Visual COBOL 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 ensure that the RM2VCOB configuration is selected.

      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 (Windows), or cp ${basedir}/ADISCTRL ${basedir}/New_Configuration.bin/ADISCTRL (UNIX), 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.
Previous Topic Next topic Print topic