Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Using Common COBOL Copybooks in Visual COBOL for Eclipse

Using Common COBOL Copybooks in Visual COBOL for Eclipse

Problem

In Visual COBOL for Eclipse, how do I make a copybook in one COBOL project available to other COBOL projects?

Solution

Instead of having the copybook in a COBOL project, place the copybook into a COBOL Copybook project. Here are the steps:

  1. In Visual COBOL for Eclipse, create a project of type "COBOL copybook", named for example, "my_copybooks".
    • From the menu, select File -> New -> COBOL Copybook Project, and enter a name for the project
  2. Move desired copy file(s) from an existing COBOL project into "my_copybooks" project
    • Select the copy files in the COBOL project using CTRL-Click
    • Drag the selected files to the new COBOL Copybook project
  3. Add reference to "my_copybooks" project in each COBOL project that needs to access the copybook
    • In each COBOL project, go to Project Properties -> Micro Focus -> Build Path
    • Choose the "Projects" Tab
    • Click "add" button to add a reference to another project
    • Choose the "my_copybooks" project

Instructions tested with Visual COBOL for Eclipse 3.0

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-04-29 23:57
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.