time between job

Tools and several solutions to manage Control-M products
Post Reply
User avatar
juventus
Nouveau
Nouveau
Posts: 1
Joined: 28 Nov 2006 12:00

time between job

Post by juventus » 05 Mar 2008 8:55

I HAVE 2 job : job1 , job2 .
job1 finished , job2 start after ex:60 second ??????

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 06 Mar 2008 8:35

Hi juventus,

Some informations are needed:

- Which platform, version and OS are used
- Which scheduling criteria to use on job1/job2 (ressource, incond, time...)

Walty

hipikll

Post by hipikll » 06 Mar 2008 11:53

use JOB1-JOB2 cond and in JOB2 define the variable %%PRECMD = sleep 60
or %%PRECMD = _sleep 60.

Nemnoga ucoby.

User avatar
wrclark
Nouveau
Nouveau
Posts: 12
Joined: 05 Feb 2008 12:00

Post by wrclark » 08 Mar 2008 3:40

We had this problem too and were able to solve by changing the default "sleep time" For the TR(acker) and SL (selector) processes. By default, the sleep time is 30 seconds, which means that, depending on the timing of job completion, you could wait up to a minute just for them to figure out that Job2 is ready to start. Assuming you've got the horsepower on your host, I would recommend downing these values to 5 seconds using slptime script as the controlm server user.

Hope that helps.

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 23 Apr 2008 3:13

Use the command "sleep":
in unix sleep 60
in windows _sleep 60 (utility installed in the agent default dir).

For doing this there many manner, depends to your flow:
- Build a job between JOB1 and JOB2 with task type command and in the command line: sleep 60 (or _sleep 60)

- use the %%PRECMD system variable in the var panel that do the same (is in backgroud but for sleep commadn is perfect)

Dont modify TR and SL sleep time if you can.

User avatar
Fredmon
Nouveau
Nouveau
Posts: 5
Joined: 18 Apr 2008 12:00

Post by Fredmon » 18 Oct 2010 10:45

how would you set the sleeper command up to work in SAP jobs. I use it with UNIX jobs, command sleep 3600 (1 hr). Any ideas

Post Reply