Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

6.1.2 Setting the main program

Before performing a build of a COBOL project with an executable file as the target type, specify one of the source files of the project as the main program. If the main program is not specified, a link error will occur. The two types of main programs, determined according to types of programs created, are described below. The main program type is specified with a wizard when a COBOL project is created.

Point

If the COBOL console window is specified as the main program, and the application is executed from NetCOBOL Studio, the Console view is used instead of the system console.

Specifying the main program

To specify the main program:

  1. Select a source file in the "Dependency" or "Structure" view.

  2. Select "Main Program" from the context menu.

  3. The selected COBOL source file is set as the main program, and the icon of the file is changed.

Changing the main program type

To change the main program type:

  1. Select the appropriate project from the "Dependency" or "Structure" view.

  2. Select "File" > "Properties" from the menu bar, or select "Property" from the context menu. The Properties dialog box appears.

  3. Select "Target" in the left pane. The "Target" page is displayed.

  4. Select "COBOL console window" or "System console window" from "Application format", and click "OK" button.