start again a job sequencer only on the jobs in failure

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
auvray.muriel
Participant
Posts: 43
Joined: Wed Feb 19, 2003 7:17 am
Location: France - Paris
Contact:

start again a job sequencer only on the jobs in failure

Post by auvray.muriel »

Hello,

I read in the post

"difference between Datastage' S release 6x and 7x"

that one could start again a job sequencer only on the jobs in failure. How to make? Is it about a new functionality of V7?

Thank you for your help

Muriel
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You need Ds7.1. It is built into a sequence and works great.
Mamu Kim
auvray.muriel
Participant
Posts: 43
Joined: Wed Feb 19, 2003 7:17 am
Location: France - Paris
Contact:

Post by auvray.muriel »

I am in version 7.1 :D , but how is that set up? :roll:

Muriel
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It is setup automatically. You have to tell it to not restart a specific job. There is a checkbox for that. In the job activity stgae it says "Do not checkpoint". Do not check this box.

In the job properties there is a checkbox for "Add checkpoints so sequence is restartable on failure". Check this box.

The next checkbox in the job properties is "Automatically handle activities that fail". Check this box.

Next you need an Exception Handler. This stage is not on the normal job stream. We link this to an Email Notofication and then to UtilityAbortToLog.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The Exception Handler is only executed when a job fails.
Mamu Kim
auvray.muriel
Participant
Posts: 43
Joined: Wed Feb 19, 2003 7:17 am
Location: France - Paris
Contact:

Post by auvray.muriel »

Thank you very much.

Is it obligatory to have a stage "Exception Handler" in the Job Sequencer so that that functions??
If so, I did not understand at which place I must positioned. :roll:
In entry of each job must it be?
Like the drawing below ?

Code: Select all

JobActivity_01------------------------> Sequencer --------------->JobActivity_02
                                       ^
                                       |
Exception Handler ----------------------

Muriel
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I am not sure it works without it but it does not link up to the main job flow.


Job1 -> Job2 -> Done

Exception -> Email -> AbortToLog

Make sense?
Mamu Kim
auvray.muriel
Participant
Posts: 43
Joined: Wed Feb 19, 2003 7:17 am
Location: France - Paris
Contact:

Post by auvray.muriel »

Thank you beacoup, I will carry out a test.

Muriel
auvray.muriel
Participant
Posts: 43
Joined: Wed Feb 19, 2003 7:17 am
Location: France - Paris
Contact:

Post by auvray.muriel »

I have just made the test, and it is not obligatory to have the training course "Exception". :wink:

It's cool :D

Still thank you

Muriel
lebos
Participant
Posts: 74
Joined: Mon Jan 20, 2003 10:02 am
Location: USA

Post by lebos »

I don't know why, but my AIX DS 7.1 system is acting differently.

I have a job sequence which has two job acitivities, JobA and JobB. These jobs are independent (they each load a different table) and are not connected in any way in the sequence. JobA has two triggers one handling failure, the other everything else ("otherwise" - goes only to a sequence with no further steps). On a failure of JobA, an email is sent and no other steps exist. JobB has only an "OK" trigger which leads to a sequence with no subsequent steps. (This is a test job afterall :D )

When I force JobB to fail (giving it a non-existent database name) and allow JobA to succeed, the sequence simply ends up "Finished", not "Finished/Restartable". The job property checkbox for "Add checkpoints so sequence is restartable on failure" is checked and neither job has the "Do not checkpoint" box checked.

I have tried other setting, with and without automatic error handling, etc, but nothing seems to work. Any thoughts?

Larry
Post Reply