Set Up the OESQLAsst Project

Walks you through the steps required to create and configure an Eclipse project to use for this tutorial.

Create an Eclipse project

This tutorial requires that you create a COBOL project where you store, build, and run the COBOL application that you create later in this tutorial using the OpenESQL Assistant.

  1. From the Eclipse IDE, click File > New > Project.
  2. On the New Project wizard, expand Micro Focus COBOL, click COBOL Project; and then click Next.
  3. In the Project name field, type OESQLAsst.
  4. Click Finish.

    Eclipse creates a new project named OESQLAsst.

Create a COBOL program

The new project contains no programs, so you need to add a new generic program to use in a later tutorial.

  1. From the Application Explorer view, right-click the OESQLAssistantTutorial project and select New > File > COBOL Program.
  2. Click Finish. This creates a default COBOL program named Program1.cbl, opens it in the COBOL editor, and compiles it automatically.

    For now, leave the Program1.cbl file open in the COBOL Editor. You will need it there in a future tutorial.

Set project properties

By default, this application connects to the database via ODBC. To provide optimal cursor behavior, including isolation level and lock concurrency settings, you must set the BEHAVIOR parameter for the SQL BEHAVIOR compiler directive option.

  1. From the Application Explorer view, right-click the OESQLAsst project and select Properties from the context menu.
  2. Expand Micro Focus > Project Settings > COBOL > SQL Preprocessor.
  3. Check Use SQL Preprocessor.
  4. From the Preprocessor Type drop-down list, select OpenESQL.
  5. On the Directives list, select BEHAVIOR.
  6. From the corresponding Value drop-down list, select ANSI.
  7. Click Apply and Close.