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
Visual Studio, and run it on the JCLDEMO
enterprise server region, then debug the application in
Visual Studio.
Create the JCLDEMO project
- In Visual Studio, click
.
- In the
New Project dialog box, expand
.
- Click
Enterprise Server, and then click
Native.
- Select
Mainframe Subsystem Application.
- In the
Location field, type
c:\tutorials\JCL.
- In the
Name field, type
JCLDEMO.
- Click
OK.
This creates the
jcl project directory under
c:\tutorials\JCL.
Import JCLDEMO demonstration application files
- In the
Solution Explorer, right-click your project and select
Add > Existing Item.
- Browse to
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\JCL\Classic\jcldemo.
- Set the file type filter to
All Files (*.*).
- Select
ESJCL.jcl,
JCLCREAT.cbl, and
JCLREAD.cbl.
- Click
Add.
The files are added to the project.
-
In the
Solution Explorer, right-click the project name, select
, then type
catalog.
Your project requires this folder to submit the JCL successfully.
Set JCLDEMO project properties
- In the
Solution Explorer, double-click the
Properties folder, and click the
COBOL tab.
- Set
Source Format to
Fixed.
- Set
COBOL dialect to
Enterprise COBOL for z/OS.
- Set
Character set to
ASCII.
- On the
Debug tab, select
JCL from the
Launch drop-down list.
-
Press
Ctrl+S
to save the changes in the project properties.
Build the JCLDEMO solution
- Right-click the JCLDEMO solution in the
Solution Explorer.
- Choose
Build Solution from the context menu.
Check the
Output window to ensure the application compiles without errors.