Page 1 of 1

how to execute unix sleep function in datastage

Posted: Wed Feb 22, 2006 1:56 am
by ysrini9
Hi

we are written sleepfunction in unix like sleep 60..

we are calling that function into datsatge by using Afterjobsubroutinue

Exesh filename....

But it's giving error...sleep10.sh: cannot execute
like this we got errors...

++++++++++++++++++++++++

Our requirement is we need to set pause time is 1 mint between jobs.

+++++++++++++++++++++++++++++++++

please help on this

Regards
srini.

Posted: Wed Feb 22, 2006 2:06 am
by ArndW
srini,
...But it's giving error...sleep10.sh: cannot execute...
It looks like you have specified the call incorrectly, which routine and parameters have you used?

Posted: Wed Feb 22, 2006 2:11 am
by djm
If all you are looking to do is pause for 60 seconds, the after job sub-routine command simply needs to be:

Code: Select all

sleep 60
i.e. there is no need to write your own shell script wrapper to the sleep command. Invoke sleep directly.

David.

Posted: Wed Feb 22, 2006 7:54 am
by chulett
Or fully path the script in your ExecSH call and make sure it has execute permissions on it.