Hi,
We are using DataStage 7.5.1
1. Can we write a routine which compiles all the jobs present in a project. If yes, then please specify.
2. Consider the following scenario.
a. We have a Master sequnce which contains a group of base sequnces which runs one after the other if they are successful.
b. A base sequence contains a collection of jobs.
c. I have checked the options Add checkpoints so sequnce is..... and "Automatically handle activtities that fail." for all base level and master.
d. If one of the jobs in the base level sequences is aborted then the base level sequence and master sequence is also aborted. (This is what I expected)
e. After correcting the failed job, if I run the Master sequence it restarts but it resetting the aborted base level sequence. But my requirement is that base level sequence should also start from the failed job.
Regarding sequence restarting
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 38
- Joined: Tue Jan 10, 2006 1:25 am
Regarding sequence restarting
Thanks & Regards,
Zabi
Zabi
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 38
- Joined: Tue Jan 10, 2006 1:25 am
Kumar,
Reset if reqd then run for a job is not working.
Master_Seq :
BaseSeq1 ---(Executed Ok)---> BaseSeq2 -(Executed Ok)--> BaseSeq3
BaseSeq1:
Job1 ---(Executed Ok) ---> Job2 --(Executed Ok)-> Job3
If I run the Master_Seq, let us suppose Job2 has got failed then BaseSeq1 and Master_Seq are getting aborted.
Please advice on the following.
After correcting the error in Job2, if I rerun the Master_Seq then it should start from Job2 of BaseSeq1 and after that BaseSeq2.
Reset if reqd then run for a job is not working.
Master_Seq :
BaseSeq1 ---(Executed Ok)---> BaseSeq2 -(Executed Ok)--> BaseSeq3
BaseSeq1:
Job1 ---(Executed Ok) ---> Job2 --(Executed Ok)-> Job3
If I run the Master_Seq, let us suppose Job2 has got failed then BaseSeq1 and Master_Seq are getting aborted.
Please advice on the following.
After correcting the error in Job2, if I rerun the Master_Seq then it should start from Job2 of BaseSeq1 and after that BaseSeq2.
Thanks & Regards,
Zabi
Zabi
I had the same problem.
Make sure you are not specifying the execution mode of the Base sequences as "reset if required then run". It should just be "Run". Because if you reset it, it looses it "checkpoints". Its similar to compilation. Also, make sure when one of your job fails, only the child job should be compiled and none of the sequences.
To summarize:
Master seq. --- > Execution Mode = Run
Base seq ------> Execution Mode = Run
Child Jobs -----> Execution Mode = Either 'Run' or 'Reset if required'
For my restartable sequences, i had 'Run' as the execution mode for all sequences and jobs.
I hope it helps.
Make sure you are not specifying the execution mode of the Base sequences as "reset if required then run". It should just be "Run". Because if you reset it, it looses it "checkpoints". Its similar to compilation. Also, make sure when one of your job fails, only the child job should be compiled and none of the sequences.
To summarize:
Master seq. --- > Execution Mode = Run
Base seq ------> Execution Mode = Run
Child Jobs -----> Execution Mode = Either 'Run' or 'Reset if required'
For my restartable sequences, i had 'Run' as the execution mode for all sequences and jobs.
I hope it helps.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.