how to execute unix sleep function in datastage

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
ysrini9
Participant
Posts: 108
Joined: Tue Jul 12, 2005 2:51 am

how to execute unix sleep function in datastage

Post 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.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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?
djm
Participant
Posts: 68
Joined: Wed Mar 02, 2005 3:42 am
Location: N.Z.

Post 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.
(Previously known as D)

Be alturistic and donate your spare CPU cycles to research. http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or fully path the script in your ExecSH call and make sure it has execute permissions on it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply