Guides you through all of the project-centric steps of this tutorial, including creating the ACCTWEB project, importing the
ACCTWEB demonstration files,
and
configuring the project in
Eclipse
Create the ACCTWEB project
- From the Eclipse
Application Explorer view, right-click
Enterprise Development Projects; then select
New COBOL Project > Mainframe COBOL Project.
This starts the New Mainframe COBOL Project wizard.
- Type
ACCTWEB into the
Project Name field.
- Click
Finish.
The ACCTWEB project appears in the
Application Explorer view. By default, the COBOL dialect is
Enterprise COBOL for z/OS and the character set is
EBCDIC.
Import the ACCTWEB Demonstration Application
- In Eclipse, select your project in the
Application Explorer view.
- From the main menu, click
File > Import.
- In the
Import dialog box, expand
General, click
File System and then click
Next.
- Click the
Browse button that corresponds to the
From directory field, and then navigate to the ACCTWEB sample files, located by default in the
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\CICS\Classic\ACCTWEB directory.
- Click
OK.
- In the left panel, expand the
ACCTWEB folder.
- Check the boxes next to all of the listed folders, which include:
- bms
- cbl
- cpy
- data
- html
- repos
- system
- Click
Finish.
This imports all required files into your project and builds the project.
Note: The project build fails at this point because you have not set any project properties. You do this next.
Set project properties
- Open the Project Properties page
-
- In the
Application Explorer view, right-click the
ACCTWEB project; then select
Properties.
- Create a build configuration
-
- In the left pane, expand
Micro Focus.
- Click
Build Configurations.
- In the right pane, click
Manage Configurations.
- Click the pencil icon to rename the current build configuration.
- Replace
New Configuration with
ACCTWEB Build.
- Click
Finish.
- Specify build paths and targets
-
- In the left pane, expand
Build Configurations.
- Click the
Link entry under
Build Configurations.
- In the right pane, replace the
New Configuration.bin value in the
Output Path with
loadlib.
- Ensure
Target Type is set to
All Native Library Files.
- Click
Apply.
- In the left pane, click
Build Path.
- In the right pane, click the
Dependency Paths tab.
- Check
ACCTWEB and
ACCTWEB/cpy.
- Specify the CICS preprocessor
-
- In the left pane, expand
Project Settings > COBOL.
- Click the
CICS Preprocessor entry under
COBOL.
- In the right pane, check
Use CICS Preprocessor.
- Click
Apply and Close to save all property settings.
At this point, Eclipse automatically rebuilds the project, this time without errors.