Equivalent of 'sleep' in a server routine

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
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

Equivalent of 'sleep' in a server routine

Post 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
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Datastage equivalent of UNIX SLEEP is still SLEEP.

Code: Select all

SLEEP [seconds]
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

Post by kausmone »

Thanks :oops: :D
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or, if that's too long:

Code: Select all

NAP  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.
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

Post by kausmone »

Great! Thanks Ray. :)
Post Reply