ETLStats: Why is ReportDbDriver followed by a Sequencer?

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
JKenklies
Premium Member
Premium Member
Posts: 30
Joined: Mon Mar 05, 2007 3:02 am
Location: Hamburg, Germany

ETLStats: Why is ReportDbDriver followed by a Sequencer?

Post by JKenklies »

Dear Mr. Kim,

could you please explain in short words:

What is the advantage of using a sequencer stage as last stage in Sequence after using DSJobReportDbDriver(NoWait) like you did in SeqJobStatus for example?

Should I do that too, when adding DSJobReportDbDriver to my sequences?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not Mr Kim, but I always end a Sequence job with a Sequencer as that allows the last activity to have an output / exit side trigger that can be checked by the job control and thus make it restartable.

Hope none of the words were too long. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Craig is correct. Just call me Kim by the way.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Kim by the way it is.
:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Thanks Ray.
Mamu Kim
JKenklies
Premium Member
Premium Member
Posts: 30
Joined: Mon Mar 05, 2007 3:02 am
Location: Hamburg, Germany

Post by JKenklies »

Thank you, Ray (and Kim, by the way... :p )

I'm not sure, if I really understand that. The sequencer stage is an easy way to have an output link that does nothing. So far so good, but what would happen without the output link? I thought a job was always restartable unless it aborts, isn't it? And what do you mean with job control? Is it the sequence calling the job?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yah, thanks Ray... for the lame joke. :wink:

The output link doesn't "do nothing", it allows an OK trigger from the previous stage to exist that otherwise wouldn't have one and this makes the Sequence Job restartable from that last Job Activity stage if that job aborts and you have those options set. Without the trigger, an abort in the last job would mean you could not restart the Sequence from that point.

Build a small test case, easy enough to check it out and see the behaviour yourself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
JRodriguez
Premium Member
Premium Member
Posts: 425
Joined: Sat Nov 19, 2005 9:26 am
Location: New York City
Contact:

Post by JRodriguez »

Chulett,

:shock: Looks like the behaviour is not like that anymore, I tested it with 8.1 and the sequence restarted from the last activity
Julio Rodriguez
ETL Developer by choice

"Sure we have lots of reasons for being rude - But no excuses
JKenklies
Premium Member
Premium Member
Posts: 30
Joined: Mon Mar 05, 2007 3:02 am
Location: Hamburg, Germany

Post by JKenklies »

Thanks Craig, I think I got it now.

:)
Post Reply