Run the ESJCL Job

Provides instructions for submitting the ESJCL job to the ESJCL enterprise server region from the JCLDEMO project, and viewing the resulting spool queue and catalog.

Start the ESJCL enterprise server region

  1. On the Server Explorer, expand localhost under Micro Focus Servers to see a list of available enterprise server regions.
  2. Right-click ESJCL, and then select Start from the context menu.
    Note: The first time you start the ESJCL region, the Enterprise Server Sign On dialog box prompts you to enter connection details. Because the server is not secured, just click OK to continue.

    The Output window shows the progress of the Start command.

Submit the JCL job

  1. In the Solution Explorer, right-click ESJCL.jcl, and select Submit JCL from the context menu.
    Note: As an alternative, you can submit the job by dragging the ESJCL.jcl file from the Solution Explorer to the Server Explorer and dropping it onto the ESJCL enterprise server region entry.
  2. Check the Output window to see the output messages, including a link to view the job result.
  3. Ctrl+click the link in the Output window to see the details of the job.

View the spool queue

The spool queue for submitted JCL jobs is maintained and controlled by the Enterprise Server Monitor and Control (ESMAC) feature running on your enterprise server region. You can view the status of jobs in the spool queue by launching the spool queue viewer from the Visual Studio IDE.

  1. On the Server Explorer, right-click the ESJCL region, and select Show Spool from the context menu.
    Note: As an alternative, right-click the JCLDEMO project in the Solution Explorer, and select Enterprise Server > Show Spool from the context menu.

    The Server Local/ESJCL Spool tab opens in Visual Studio, showing the spool queue. The Output checkbox is enabled, which means you are viewing the Complete queue containing all jobs that have an Output status.

  2. To see the details of the JCLTEST job, check the box to the left of the JCLTEST entry, and then click Display.
  3. Click the Details button that corresponds to the JESYSMSG DD Name.
  4. On that details page for JESYSMSG, click Display to view the output from the step.
    Note: The spool queue viewer works much like a Web browser. To move between viewed pages, right click and then select Back or Forward from the context menu.
  5. Close the Server Local/ESJCL Spool tab.

View the catalog file

The catalog file holds the details of data sets required by the JCL jobs running on an enterprise server region. To view the catalog for the JCLTEST job:

  1. On the Server Explorer, right-click the ESJCL region, and select Show Catalog from the context menu.
    Note: As an alternative, right-click the JCLDEMO project in the Solution Explorer, and select Enterprise Server > Show Catalog from the context menu.

    The Server Local/ESJCL Catalog tab opens in Visual Studio

  2. Click List.

    This shows the catalog file, MFIJCL.OUTFILE.DATA, created by the example job.

  3. Click the DCB link to see the catalog entry.
  4. To view the file, click Display.
    Note: The catalog viewer works much like a Web browser. To move between viewed pages, right click and then select Back or Forward from the context menu.
  5. Close the Server Local/ESJCL Catalog tab.