This section explains how to add existing COBOL resources to a COBOL project.
Note
Text file encoding
When existing COBOL resources are added to a COBOL project, the project's text file encoding setting is applied for the added resources. The project's text file encoding is specified in the Info page of the Properties dialog box of the project. COBOL resources which have BOM (Byte Order Mark) are treated as UTF-8.
Code conversion
Although the text file encoding of existing COBOL resources are changed when they are added to a COBOL project, code conversion is not invoked. File encoding of the COBOL resources remain unchanged.
COBOL source files registered in the Source Files folder of a COBOL project in the Dependency or "Structure" view are compilation processing targets. To register an existing COBOL source file in the Source Files folder:
For a COBOL source file that is in the project
Select the "Source Files" folder in the "Dependency" view.
Select "Add File..." from the context menu.
The "Add Source Files" dialog box corresponding to the selected project appears.
Select the file to be added to the Source Files folder.
Click the "OK" button. The selected source file is added to the Source Files folder in the "Dependency" view. The added file is reflected in the "Structure" view.
For a COBOL source file that is not in the project, either of the following methods can be used:
Using Windows Explorer, select the COBOL source file to be registered and select "Copy" from the context menu. Select the Source Files folder, and then select "Paste" from the context menu.
Using Windows Explorer, drag and drop the COBOL source file into the Source Files folder.
To add a link file:
Select "Add File..." from the context menu. The "Open" dialog box appears.
Select the file to be added to the "Linking Files" folder.
Click the "OK" button. The selected file is added to the "Linking FIles" folder in the "Dependency" view. The added file is reflected in the "Structure" view.
To add a dependent file: