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 > COBOL Project.
  2. In the Project name field, type OESQLAsst.
  3. 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 COBOL Explorer, right-click the OESQLAssistantTutorial project and select New > 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 COBOL Explorer, 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.