Configure the Supported Copybook Extensions

Configure Visual Studio to recognize the appropriate RM/COBOL file extensions as copybooks in Visual COBOL.
  1. On the Tools menu, select Options.

    The Options dialog box appears.

  2. In the left-hand pane, select Text Editor > Micro Focus COBOL > Advanced.

    The Advanced settings appear in the right-hand pane.

  3. For the list of values of the Copybook Extensions option, append ,.prc,.ws to the end of the list, then click OK.

    Files with the extension .prc or .ws are now recognized as copybooks for all projects in Visual Studio.

    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.