Timer in Sequencer Job

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
hemant
Participant
Posts: 67
Joined: Mon Dec 15, 2003 6:43 am

Timer in Sequencer Job

Post by hemant »

Hi!

Can i add timer in sequencer job.
So that my J2 Job start executing after 10 min. of J1.

Regards
Hemant K
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Use sleep command
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, add a Routine Activity stage that calls a custom routine you create to sleep X number of seconds. :wink: Pass in the time to sleep as an argument to the routine so it becomes 'generic'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Better to pass values to routine in minute and compute the counter in the routine.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A counter will consume CPU cycles.

Prefer SLEEP or NAP.

If you really need an interruptable routine, create a loop that includes a SLEEP or NAP statement.

SLEEP is in seconds (or until a particular time), NAP is in milliseconds.
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