The recommended way to work with Visual COBOL is to include all source files in a project because this enables full support for the IDE editing, compiling and debugging features. There is limited support in the IDE for standalone files or such that are opened in the IDE using the Open Folder functionality, Open > Folder. Visual COBOL provides a command for creating projects for these files in order to enable full editor, build and debug functionality.
To create a project from a standalone COBOL file:
The file loads in the editor. If no program symbols file is found for your program, the editor shows a task bar with commands to either browse for a symbols file or view the Compiler directives to use for compiling the file.
This starts the Create COBOL project wizard.
Alternatively, if the standalone file is visible in Solution Explorer (if Show Miscellaneous files in Solution Explorer is enabled from Tools > Options > Environment > Documents), you can also right-click the file in Solution Explorer, and click Create COBOL Project.
This creates a new project that contains your file. The project has the properties specified in Tools > Options > Micro Focus > Micro Focus > Standalone Editing > Build Directives.
To create a project from the files in a folder opened in Solution Explorer:
This starts the Create COBOL project wizard.
This creates a new project that contains your file. The project has the properties specified in Tools > Options > Micro Focus > Micro Focus > Standalone Editing > Build Directives.