Page 1 of 1

ReStartablity of Sequence in case of warnings

Posted: Sat Nov 09, 2013 7:43 pm
by DSRajesh
Dear All,

I have a sequence which is calling jobs/sequences and with trigger condition with warning-conditional link to SEQUENCER with ANY mode and the SEQUENCER linked to Routine Activity which is calling UtilityAbortToLog and sending message using notification activity.

so whenever Warnings occur in any datastage job activity ,then sequence is aborted but if re starts it is starting from starting job activity.

what shall do if i need to restart the sequence from the job activity which causes warning rather than from starting job activity.

Posted: Sun Nov 10, 2013 8:10 am
by DSRajesh
could any one suggest me on this..

Posted: Sun Nov 10, 2013 8:28 am
by chulett
Suggest patience... it is a weekend, after all.

Let's start at the beginning. Do you have checkpoints enabled in the Sequence job? Do you understand that restartability is driven by aborts, not warnings?

Posted: Sun Nov 10, 2013 1:46 pm
by ray.wurlod
If you want to do anything differently from the default, create triggers that will implement your logic to your needs. Use Sequencers within the sequence to combine triggers.

Posted: Sun Nov 10, 2013 6:49 pm
by chulett
And for something 'out of the box' you'd need to ensure the jobs abort rather than simply end with warnings if you want that to be the restart point. You could do that a couple of different ways, one would be to drop the warning limit down so that the first warning aborts the job. Another would be to check the INTERIMSTATUS in an after job routine and if the check shows the job will be finishing with warnings, call the Abort utility there. This would allow all warnings to be captured, something you wouldn't see with the first approach but still abort the job so the Sequence could restart from that point... assuming you still ensure that the Sequence aborts as well for the checkpoints to function.