Page 1 of 1

Equivalent of 'sleep' in a server routine

Posted: Tue Nov 20, 2007 2:00 am
by kausmone
Hi,

I need to pause processing that is happening in a loop for a few seconds. This is the best scenario for a UNIX 'sleep' command but I want to avoid that since the command will be given inside a loop. A call to UNIX multiple times inside a loop would drastically affect performance, so am looking for a DataStage equivalent of the sleep command. Is there such a thing?

Thanks,
Kaus

Posted: Tue Nov 20, 2007 2:19 am
by balajisr
Datastage equivalent of UNIX SLEEP is still SLEEP.

Code: Select all

SLEEP [seconds]

Posted: Tue Nov 20, 2007 2:23 am
by kausmone
Thanks :oops: :D

Posted: Tue Nov 20, 2007 2:38 am
by ray.wurlod
Or, if that's too long:

Code: Select all

NAP  milliseconds

Posted: Tue Nov 20, 2007 2:44 am
by kausmone
Great! Thanks Ray. :)