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 view, expand Local [localhost:86] 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 Console view shows the progress of the Start command.

Submit the JCL job

  1. In the Application Explorer view, right-click ESJCL.jcl, and select Submit JCL to associated Server from the context menu.
  2. Check the Console view to see the output messages, including a link to view the job result.
  3. Click the link in the Console view 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 Eclipse IDE.

  1. On the Server Explorer view, right-click the ESJCL region, and select Show Spool from the context menu.

    The Server Local/ESJCL Spool tab opens in Eclipse, 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 view, right-click the ESJCL region, and select Show Catalog from the context menu.

    The Server Local/ESJCL Catalog tab opens in Eclipse

  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.