Walks you through the process of creating aVisual COBOL project for the ScheduleDemo application and its service interface.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
Restriction: This topic applies to Windows environments (local development) only.
Create the ProgramREST Project
Create a project for your service interface, and add files to the project.
- Start
Visual COBOL.
If this is the first time you start the application, you see the
Welcome page in Eclipse. Click
Open COBOL Perspective.
If you have already started Eclipse, click
Window > Show View > COBOL Explorer.
- From the
Visual COBOL Main Menu, click
File >
New >
COBOL Project.
- In the
Project name field, type
ProgramREST.
- If not already checked, check
Use default location; then click
Finish.
The COBOL Explorer now shows the
ProgramREST project.
- From the COBOL Explorer, right-click the
ProgramREST project and select
Import > Import from the context menu.
- Expand
General; then double-click
File System.
- Click the
Browse button that corresponds to the
From directory field, and browse to the
%PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples\Interface Mapping Toolkit\ServiceInterfaces\ScheduleDemo directory; then click
OK.
- In the left pane, check
ScheduleDemo to select all files listed in both panes.
- In the right pane, uncheck
Readme-Ec.xml and
Readme.xml. These files are used by the Samples Browser.
- Click
Finish.
Visual COBOL adds the files and builds the project automatically.
Set the COBOL Build Configuration
This IMTK project requires the build action to produce a dynamic link library (.dll) file for the
schedule program. To ensure this behavior:
- In the
COBOL Explorer, right-click the
ProgramREST project; then select
Properties from the context menu.
- Expand
Micro Focus > Build Configurations; then click
COBOL.
- From the
Target Type drop-down list, select
All Native Library Files; then click
OK.