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:10086] > Default [127.0.0.1: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 ESCWA. 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 Spool: ESJCL tab opens in Eclipse, showing the spool queue. By default, the filter shows the completed jobs; click Spool filter (Apply a filter...) to show the filter options that you can apply to the current view.

  2. To view the details of the JCLTEST job, double-click it.

    A new tab is opened for that particular job. It contains collapsible sections for each aspect of the job.

  3. Expand each section to review the progress and the output of the job.
  4. Close the spool tabs.

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 Catalog: ESJCL tab opens in Eclipse, showing the complete contents of the catalog. One of the entries, MFIJCL.OUTFILE.DATA, was created by the job you reviewed above.

  2. Double-click the entry for MFIJCL.OUTFILE.DATA.

    The DCB Details: MFIJCL.OUTFILE.DATA tab opens in Eclipse, showing the DCB attributes and contents of the data set.

  3. Click the DCB link to see the catalog entry.
  4. Expand the Display section to view the contents of the catalog file.
  5. Close the catalog tabs.