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

4.2.2 COBOL Project generation Wizard

Wizards are used to create COBOL projects and COBOL source files. This section explains the COBOL project wizard used to create a COBOL project. The COBOL project generation wizard defines a target. To create a COBOL project:

  1. Select "File" > "New" > "COBOL Project" from the menu bar.

  2. Specify the project information, and click the "Next" button.

    Table 4.2 Project information

    Items

    Descriptions

    Project name

    Specify a name for the project.

    Contents

    Specify the storage location of project resources.

    Create new project in workspace

    If this is selected, project resources are stored in the workspace folder.

    Create new project in external location

    If this is selected, project resources are stored in a folder other than the workspace folder. The storage folder can be selected by clicking the "Browse" button.

  3. Define a target, and click the "Next" button.

    Define the target type and target file name of the COBOL program to be created.

    Table 4.3 Defining the target

    Field

    Description

    Target type

    Specify the target type of the COBOL program to be created.
    When creating an executable file (exe), select "Executable".

    When creating a dynamic link library (dll), select "Dynamic-link library".

    Use the DLL specific runtime initialization file(COBOL85.CBR)

    For a target type of Dynamic-link library, if this option is selected, an initialization file for DLL-specific execution is used.

    Target name

    Specify a file name for the target file (exe/dll) to be created.

    Application format

    Specifies the format of the created application.

    COBOL console window

    Specifies that a console window created by a COBOL program is the input-output destination of ACCEPT and DISPLAY statements, and that a message box is the output destination of execution-time error messages.

    System console window

    Specifies that the system console (command prompt window) is the input-output destination of ACCEPT and DISPLAY statements and execution-time error messages.

    Use precompiler

    Select this item to create a COBOL project that uses the precompiler.

    Text file encoding

    Select the text file encoding for the files to be created in the project.

    Information

    • After the project is created, text file encoding can be changed as follows:

      1. Select the project for which the Text file encoding is to be changed from the "Dependency" view or the "Structure" view.

      2. Select "Property" from the context menu. The Properties dialog box is displayed.

      3. Select Info from the left pane. The Info page is displayed.

      4. Select file encoding to be changed from "Text file encoding" in the Info page. Click "OK" in the Properties dialog box.

    • Default values of COBOL project settings can be changed. For detail, refer to the "4.6 Default values of New COBOL Project settings".

    Note

    • If the Text file encoding is changed, file encoding of existing project files are not changed.
      When the Text file encoding is different from the file encoding of a project, a compile error or a runtime error might occur during the build or the execution. These encodings need to correspond.

    • In a remote development, when you build COBOL source file of the text file encode "UTF-8", installs NetCOBOLV10.0.0 or later in the server side.

  4. If "Use precompiler" is checked in the Define the target page, then specify the precompiler link information, and click the "Next" button.

    Table 4.4 Precompiler link information

    Field

    Description

    Precompiler command

    Specifies the name of a command that starts the precompiler.

    Precompiler parameters

    Specifies the precompiler command parameters.

    Precompiler source extension

    Specifies the extension of an input source file for the precompiler. The following extensions cannot be specified:

    • cobol

    • cob

    • cbl

    • lcai

    Precompiler output source extension

    Select the file extension for the output source file from the precompiler.

    Use original source line numbers for error messages

    If this item is checked, COBOL compiler error messages are displayed using the line number in the original source, rather than the line number of the preprocessed source. (The INSDBINF (*1) command is invoked.) The default setting is unchecked.

    INSDBINF parameters

    This item sets parameters of the INSDBINF command, which develops line information for the precompiler input source in COBOL source files generated by precompilation. Note that input and output source file names cannot be specified because they are determined from precompiler input source file names.

    *1: For the INSDBINF command, refer to "6.2.2 INSDBINF command".

    Specify precompiler link information for the COBOL project to be created.

    For more precompiler link information, see "6.2.1 Setting and changing initial values of precompiler link information".

  5. Select "Generate code". Select either "COBOL Source" or "Object-Oriented COBOL Source" and click the "Finish" button. A COBOL project is generated, and the source generation wizard is displayed.

    Table 4.5 Making selections

    Item

    Description

    Do not generate code

    A project is created, and no source code is generated with the project.

    Generate code

    A project is created using a wizard that generates a template of source code. Select a wizard from "Available skeleton codes".

    Available skeleton codes

    If "Generate code" is specified, select a source code generation wizard.

    Select either "COBOL Source" or "Object-Oriented COBOL Source"

    COBOL Source

    Object-Oriented COBOL Source

    Specify whether to generate source code. To generate source code before creating the project, select the appropriate source code generation wizard from Available skeleton codes.

    For details on the source generation wizard, see "4.2.4 COBOL source generation wizard."

Information

Default values of COBOL Solution Project settings are changed in the following way.

  1. Select "Window" > "Preferences" from the menu bar. The Preferences dialog box appears.

  2. Select "COBOL" > "Solution/Project" in the left pane. The "Solution/Project" page is displayed.

  3. Change the values of settings on the "Solution/Project" page, and click the "OK" button.