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.

    The directory containing ADISCTRL appears.

  2. Drag this file into Eclipse, and drop it on the project name when the cursor changes to GUID-366EA82B-A675-4D1F-B3CE-619771FB6794-low.png.

    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.

      GUID-22666D80-B7E8-4096-912A-5F869A27D059-low.png

      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 cp ${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.