Set Up the JCLDEMO Project

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

  1. In Visual Studio, click File > New > Project.
  2. In the New Project dialog box, expand Installed > COBOL.
  3. Click Enterprise Server, and then click Native.
  4. Select Mainframe Subsystem Application.
  5. In the Location field, type c:\tutorials\JCL.
  6. In the Name field, type JCLDEMO.
  7. Click OK.

    This creates the jcl project directory under c:\tutorials\JCL.

Import JCLDEMO demonstration application files

  1. In the Solution Explorer, right-click your project and select Add > Existing Item.
  2. Browse to %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\JCL\Classic\jcldemo.
  3. Set the file type filter to All Files (*.*).
  4. Select ESJCL.jcl, JCLCREAT.cbl, and JCLREAD.cbl.
  5. Click Add.

    The files are added to the project.

  6. In the Solution Explorer, right-click the project name, select Add > New Folder, then type catalog.

    Your project requires this folder to submit the JCL successfully.

Set JCLDEMO project properties

  1. In the Solution Explorer, double-click the Properties folder, and click the COBOL tab.
  2. Set Source Format to Fixed.
  3. Set COBOL dialect to Enterprise COBOL for z/OS.
  4. Set Character set to ASCII.
  5. On the Debug tab, select JCL from the Launch drop-down list.
  6. Press Ctrl+S to save the changes in the project properties.

Build the JCLDEMO solution

  1. Right-click the JCLDEMO solution in the Solution Explorer.
  2. Choose Build Solution from the context menu.

    Check the Output window to ensure the application compiles without errors.