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.
- From the Eclipse IDE, click
File > New > Project.
- On the
New Project wizard, expand
Micro Focus COBOL, click
COBOL Project; and then click
Next.
- In the
Project name field, type
OESQLAsst.
- 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.
- From the
Application Explorer view, right-click the
OESQLAssistantTutorial project and select
New > File > COBOL Program.
- 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.
- From the
Application Explorer view, right-click the
OESQLAsst project and select
Properties from the context menu.
- Expand
Micro Focus > Project Settings > COBOL > SQL Preprocessor.
- Check
Use SQL Preprocessor.
- From the
Preprocessor Type drop-down list, select
OpenESQL.
- On the
Directives list, select
BEHAVIOR.
- From the corresponding
Value drop-down list, select
ANSI.
- Click
Apply and Close.