# Job - Hello World

{% hint style="warning" %}
**Workshop - Job**

In this workshop, we're going to create & configure a simple Job.

The concepts learnt, help to build the foundation necessary for creating any Job.

* Create a new Job.
* Add entries and configure hops.
  {% endhint %}

<figure><img src="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2Fgit-blob-8bf851fbcffd75a58caa789f33924ffa7567ff49%2Fjob.png?alt=media" alt="" width="375"><figcaption><p>Pentaho Job</p></figcaption></figure>

{% tabs %}
{% tab title="1. START" %}
{% hint style="info" %}
START defines the starting point for job execution. Every job must have one (and only one) Start. Unconditional job hops only are available from a Start job entry. The start job entry settings contain basic scheduling functionality; however, scheduling is not persistent and is only available while the device is running.

The Data Integration Server provides a more robust option for scheduling execution of jobs and transformations and is the preferred alternative to scheduling using the Start step. If you want the job to run like a daemon process, however, enable Repeat in the job settings dialog box.

Note: The basic scheduling functionality and the repeat option are only functional within the main job and not within a sub job.
{% endhint %}

To create a new Job:

1. In Spoon, click File > New > Job.
2. Drag the ‘START’ job entry onto the canvas.
   {% endtab %}

{% tab title="2. Transformation A" %}
{% hint style="info" %}
The Transformation job entry is used to execute a previously defined transformation. For ease of use, it is also possible to create a new transformation within the dialog, pressing the New Transformation button.
{% endhint %}

1. Drag the ‘Transformation’ job entry onto the canvas.
2. Double-click on the step, and configure the following properties:

<figure><img src="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2Fgit-blob-851e1e83f3ee70890f416578dfe8e4ca38521321%2FJob%20-%20transformation%20A.png?alt=media" alt=""><figcaption><p>Configure Transformation Job Entry</p></figcaption></figure>
{% endtab %}

{% tab title="3. Success" %}
{% hint style="info" %}
This step clears any error state encountered in a job and forces it to a success state.
{% endhint %}

1. Drag the ‘Success’ job entry onto the canvas.
   {% endtab %}

{% tab title="4. RUN" %}

1. Click the Run button in the Canvas Toolbar.
2. Click on the Job Metrics tab.

<figure><img src="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2Fgit-blob-fad14398e3c884627efc9c99256f14a2412b6557%2FJob%20-%20step%20metrics.png?alt=media" alt=""><figcaption><p>Job Metrics</p></figcaption></figure>

{% hint style="info" %}
The Job Entries are executed sequentially.
{% endhint %}

<figure><img src="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2Fgit-blob-cf4baf1d6dae7d507ecb5461e9ac47c544dc8933%2FJob%20-%20metrics.png?alt=media" alt=""><figcaption><p>Metrics</p></figcaption></figure>
{% endtab %}
{% endtabs %}
