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

E.2 Project Transition Procedure

The procedure for changing a project in project manager to a project in NetCOBOL Studio is as follows.

(1) Understand the original project configuration

Organize the resources managed by the Project manager project.

(2) Understand the destination project configuration

Become familiar with the resources that are managed in the NetCOBOL Studio project and how they are arranged.

(3) Back up the original project

It is recommended that you back up the conversion source project before using the project configuration conversion command.

(4) Create a shared resources project

Create a COBOL resource project on NetCOBOL Studio, and then copy the shared file that is used by multiple projects, which contains the library and descriptor, into the COBOL resource project.

One method for creating a COBOL resource project is to use the wizard provided by NetCOBOL Studio. Another method is to use the project configuration conversion command.

  1. Using NetCOBOL Studio

    1. Start NetCOBOL Studio.

    2. Select "File" > "New" > "COBOL Resource Project" from menu bar to start the wizard for creating a COBOL resource project.

    3. Run the wizard, and follow the instructions to create the OBOL resource project. For details, refer to the "4.2.3 COBOL resource generation wizard".

    4. Copy the existing shared COBOL resource into the created COBOL resource project. For details, refer to "4.5.1 Adding the existing COBOL resource.

  2. Using the Project configuration conversion command

    1. Use the "E.3.2 COBOL Resource Project Writer Module e" of the project configuration conversion command. This function executes the procedure from step 2 to step 4. For details, refer to "E.3.2 COBOL Resource Project Writer Module ".

    2. Use the import function of NetCOBOL Studio to import a COBOL resource project that has been created into any workspace.

(5) Convert the Project Organization

Create NetCOBOL Studio COBOL project in each target (exe and dll). Copy the COBOL resources into the COBOL project folder. The compiler option with the path specification changes according to the COBOL project configuration of NetCOBOL Studio.

  1. Using NetCOBOL Studio

    1. Start NetCOBOL Studio

    2. Select "File" > "New" > "COBOL Project" from the menu bar to start the wizard for creating a COBOL project.

    3. Follow the wizard instructions to create a COBOL project that corresponds to the target file. For details, refer to "4.2.2 COBOL Project generation Wizard".

    4. Add the existing COBOL resource into the COBOL project. For details, refer to "4.4.1 Adding Existing COBOL Resources".

    5. Select "File" > "New" > "COBOL Solution Project" from menu bar to start the wizard for creating a COBOL solution project.

    6. Follow the wizard instructions to create a COBOL solution project that corresponds to the project manager project file. For details, refer to "4.2.1 COBOL solution generation wizard".

    7. Add the COBOL project into the COBOL solution project.

    8. Set the build options in the COBOL solution project property dialog box.

    9. Deselect the "Enable project specific setting" checkbox in the build page of every COBOL project. When building a COBOL project, build options of the COBOL solution project become effective. For details, refer to "4.3.3 Setting common options for the projects".

    10. When using a precompiler, add the precompiler build tool in the property dialog box of the COBOL solution project. For details, refer to "6.2.3 Creating a COBOL program by using the precompiler".

  2. The Method of using Project Configuration Conversion Command

    1. Use the "Project Organization-converting Function" of the project configuration conversion command. This function does processing from step2 to 10 when above-mentioned Using NetCOBOL Studio. For details, refer to "E.3.3 Usage of Project Configuration Conversion Command (PM2NS Command) ".
      Confirm the project configuration conversion command output message. If necessary, change the conversion destination project setting after starting NetCOBOL Studio.

    2. Using the Import function of NetCOBOL Studio, import the COBOL solution project and the COBOL project that has been created in any workspace.

(6) Confirm the destination project

Confirm the project organization of NetCOBOL Studio and make sure that it can be built correctly.

When the conversion destination project is converted with the project configuration conversion command, confirm the message that is output at the time of converting and correct the conversion destination project setting as necessary.