In this tutorial, you create
an Eclipse COBOL project to use as you complete the remainder of these tutorials.
- Requirements
- Before attempting this tutorial, you must complete
Tutorial: Create a SQL Server Database.
- Phase 1: Launch
Enterprise Developer
for Eclipse
-
- Click
Start > All Programs > Micro Focus Enterprise Developer > Enterprise Developer for Eclipse.
Note: To start Samples Browser on Windows 8 and Windows Server 2012, go to the Start screen and click the
Samples tile.
- Phase 2: Create a New
COBOL Project
- In this set of tutorials, you create a
COBOL application
that uses ODBC, and the OpenESQL
ODBC runtime.
- From the Eclipse IDE, click
File > New > COBOL Project.
- In the
Name field, type
OESQLAssistantTutorial.
- In the
Location field, specify a directory in which to store the project; then click
OK.
Eclipse creates a new
project named
OESQLAssistantTutorial.
- Phase 3: Create a COBOL Program
- The new project contains no programs, so you need to add a new program to use in a later tutorial.
- From the COBOL Explorer, right-click the
OESQLAssistantTutorial project and select
New > COBOL Program.
- Click
OK. This creates a default COBOL program named
Program1.cbl and compiles it automatically.
- Close the
Program1.cbl file.
- Phase
4: 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 COBOL Explorer, right-click the
OESQLAssistantTutorial project and select
Properties.
- Expand
Micro Focus > Project Settings > COBOL > SQL Settings.
- Check
EXEC SQL.
- From the
Preprocessor Type drop-down list, select
OpenESQL.
- Scroll down the
Settings list, and select
BEHAVIOR.
- From the
Value drop-down list, select
ANSI.
- Click
Apply.
This concludes this tutorial. Please continue with
Tutorial: Set OpenESQL Assistant Configuration Options.