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 Eclipse, and run it on the JCLDEMO enterprise server region, then debug the application in Eclilpse.

Create the JCLDEMO project

  1. In the Application Explorer view, right-click Enterprise Development Projects and select New COBOL Project > Mainframe COBOL Project.
  2. In the Select a project template list, select Micro Focus template [32 bit].
  3. Ensure Use default location is selected.
  4. In the Project name field, type JCLDEMO.
  5. Click Finish.

    This creates a JCLDEMO folder in your Eclipse workspace.

Import JCLDEMO demonstration application files

  1. In the Application Explorer view, select your project, and select File > Import.
  2. On the Import dialog box, select General > File System, and then click Next.
  3. On the File system screen, click Browse to the right of the From directory field.
  4. Browse to %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\JCL\Classic\jcldemo, then click Select Folder.
  5. Select ESJCL.jcl, JCLCREAT.cbl, and JCLREAD.cbl.
  6. 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.

  7. 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

  1. In the Application Explorer view, right-click the project and choose Properties.
  2. Click Micro Focus > Project Settings > COBOL and set Source format to Fixed.
  3. Set COBOL dialect to Enterprise COBOL for z/OS.
  4. Set Character set to ASCII.
  5. Click Apply and Close to save the changes in the project properties.