The process for adding a COBOL Copybook to the Dependency tab, differs between Visual Studio and Eclipse. In Visual Studio... To have a COBOL Copybook path appear on the Dependency tab in Enterprise Developer 2.2: 1. Double click on the Properties for your project 2. Select the Dependency Paths option, if not already selected 3. Select Type = COBOL Copybook Paths, if not already selected 4. Place your cursor benath the last Copybook path, and then select the browse button (...) to the right of it. 5. Navigate to the selected directory, and click, "Select Folder". 6. You will see the folder appear along with the others. In Eclipse... To have a COBOL Copybook path appear on the Dependency tab in Enterprise Developer 2.2, the process is slightly different, as Eclipse works in a different way to Visual Studio: In Eclipse, the project needs to "know" about all the files under the base project directory in order for everything to function correctly. You will have noticed that you don't add files to a project (as you do in Visual Studio, but instead, everything in the directory is automatically added into the project as you create/import/paste anything into the project's main or sub-directories. The same idea holds true for any dependency paths that you may wish to use for copybooks. They have to be either subdirectories of the main project, or you can add them to the project as "linked resources". In other words, they are added as symbolic links to the physical locations. To add a Copybook path: 1. Select File - New - Folder 2. Click "Advanced" 3. Click "Link to alternate location" 4. Click 'Browse...' and navigate to the desired location of the copybook folder. There are path variables that can be used if you click the "Variables" button. These allow certain locations to be used without embedding fully qualified paths into the project. Click 'Finish' and the directory will be added. The folder will be added to the project and the contents (and sub directories) scanned. The folder can now be treated as any other in the Dependency Paths tab, and can be moved up/down in the copybook path order. Note - You will need to click the check box in the Dependency Paths page to ensure the directory is added to the copybook path for compilation. The default is not to add it automatically.
↧