Configure the Supported Copybook Extensions

Configure Eclipse to recognize the appropriate RM/COBOL file extensions as copybooks in Visual COBOL.
  1. On the Window menu, select Preferences.

    The Preferences dialog box appears.

  2. In the left-hand pane, select General > Appearance > Content Types.

    The Content Types pane appears in the right-hand pane.

  3. Select Text > Micro Focus Project Types > COBOL Copybook. In the bottom pane, a list of file associations for COBOL copybooks appears.
  4. Click Add, then in the Add Content Type Association dialog box, type *.prc and click OK.
  5. Repeat the previous step, entering *.ws this time.
  6. Click OK.

    The Preferences dialog box is closed. Files with the extension .prc or .ws are now recognized as copybooks for all projects in Eclipse.

    Note: If the COPY statements in your source code reference any of these files without specifying the extension, you should also set the COPYEXT"prc,ws" Compiler directive in your project.