Wait function / Sleep function

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
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Wait function / Sleep function

Post by myukassign »

I have a controller job where I call many jobs using the code.

I am using a for loop in which I repeatedly calling a job and incase it abort , resetting it and running agian in the loop.

My requirement is, after each itration of the loop it should wait for 30 seconds.

Is there a sleep or any function is availabe in datastage? So that in the jobcontrolm i can add that and my for loop will waot after each iteration
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Wait function / Sleep function

Post by sachin1 »

Never tried but please check for help in datastage for Sleep

[/b]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

SLEEP seconds

SLEEP hh:mm

NAP milliseconds

Each of these is a statement, not a function. The hh:mm format for SLEEP uses a 24-hour clock, and causes the process to sleep until that time, or not to sleep at all if that time has already passed.
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