These are the steps required to create a project comprising all the parts of your application, such as the COBOL source and
the JCL batch files. You build the demonstration application in
Eclipse, and run it on the JCLDEMO
enterprise server region, then debug the application in
Eclilpse.
Create the JCLDEMO project
- In the
Application Explorer view, right-click
Enterprise Development Projects and select
New COBOL Project >
Mainframe COBOL Project.
- In the
Select a project template list, select
Micro Focus template [32 bit].
- Ensure
Use default location is selected.
- In the
Project name field, type
JCLDEMO.
- Click
Finish.
This creates a
JCLDEMO folder in your Eclipse workspace.
Import JCLDEMO demonstration application files
- In the
Application Explorer view, select your project, and select
.
- On the
Import dialog box, select
, and then click
Next.
- On the
File system screen, click
Browse to the right of the
From directory field.
- Browse to
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\JCL\Classic\jcldemo, then click
Select Folder.
- Select
ESJCL.jcl,
JCLCREAT.cbl, and
JCLREAD.cbl.
- Click
Finish.
The files are added to the project. By default, Eclipse is configured to build the project automatically after any change in the code and this also triggers
a build. You can check the Console view to ensure the build was completed successfully.
-
In the
Application Explorer view, right-click the
JCLDEMO project, choose
New > Folder > Folder, then create a folder called
catalog and click
Finish.
Your project requires this folder to submit the JCL successfully.
Set JCLDEMO project properties
- In the
Application Explorer view, right-click the project and choose
Properties.
- Click
Micro Focus > Project Settings >
COBOL and set
Source format to
Fixed.
- Set
COBOL dialect to
Enterprise COBOL for z/OS.
- Set
Character set to
ASCII.
-
Click
Apply and Close to save the changes in the project properties.