master sequence can not restart automatically

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
fyaqq
Participant
Posts: 43
Joined: Thu Aug 31, 2006 5:05 pm

master sequence can not restart automatically

Post by fyaqq »

We came across an issue running a scheduled sequence job.
The sequence is scheduled to run on a daily basis.

One day the master (top level) sequence failed due to some reason, then
all the following days the master sequence can not start as scheduled. And
in the log we saw something like this.

Job XXX must be reset before it can run

where XXX is the name of the master sequence.

I didn't find anywhere in the master sequence I can set execution action :
reset if required, then run, as I can do on each induvidual job in the sequence.

Thanks a lot!
Novak
Participant
Posts: 97
Joined: Mon May 21, 2007 10:08 pm
Location: Australia

Post by Novak »

Hi,

Your reset button is present in the Director (to the right of the stop button) on the toolbar. If you are not interested in the previous run's logs you can achieve the same status by compiling the sequence.

Regards,

Novak
fyaqq
Participant
Posts: 43
Joined: Thu Aug 31, 2006 5:05 pm

Post by fyaqq »

Novak wrote:Hi,

Your reset button is present in the Director (to the right of the stop button) on the toolbar. If you are not interested in the previous run's logs you can achieve the same status by compiling the sequence.

Regards,

Novak
Can we automatically reset the master sequence?
I know you can click the reset button manually.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Reset can only be had from a controlling sequence. If you build a controlling sequence that does not abort, then it could run your master sequence as "reset if required, then run". That could well be the only job activity (or activity of any kind) in the controlling sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
fyaqq
Participant
Posts: 43
Joined: Thu Aug 31, 2006 5:05 pm

Post by fyaqq »

ray.wurlod wrote:Reset can only be had from a controlling sequence. If you build a controlling sequence that does not abort, then it could run your master sequence as "reset if required, then run". That could well b ...
Ray, thanks for the reply.

Is it possible to configure a controlling sequence that will not fail, or will
reset itself automatically after failure? Otherwise my issue still exists, I think.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Of course. Don't automatically handle activities that fail. That alone will prevent the controlling sequence from aborting.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's no such thing as a Sequence that resets itself. A Best Practice is to schedule a script that that runs your Sequence using dsjob and checks to see if it needs to reset it first. Again, using dsjob -jobinfo and dsjob -run -mode RESET off the top of my head.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I prefer my approach with one sequence to rule them all.

That sequence never aborts so never needs to be reset.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply