I have 4 jobs and one job sequence which runs these 4 jobs. Now, my requirement is to jun the job sequnce repeatedly (looping, like once the job sequence completes running 4 jobs, the sequencer has to be kicked off immediately and run the 4 jobs again) until some time is reach.
Say I start the Job Sequnce at 4:00 AM and want to the sequence until 6:00 AM.
Could anybody guide me please?
want to the job sequence repeatedly until particular time
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 273
- Joined: Wed Oct 18, 2006 12:20 pm
- Location: Porto
-
- Premium Member
- Posts: 273
- Joined: Wed Oct 18, 2006 12:20 pm
- Location: Porto
-
- Participant
- Posts: 247
- Joined: Mon Jan 22, 2007 11:33 pm
hello dear,
1.Imagine your 4 jobs take 2 secs to run ok.
2.start your job with some time and imagine you want be in loop for 2 hours.
you have to use UserVariables_Activity,startloop,Job_Activity and EndLoop.
job design like below
UserVariables_Activity--->startloop------->Job_Activity------>EndLoop.
in UserVariables_Activity stage create 3 variables like below
New1---@time+Iconv("00:00:10", "MTS")(ex 10 secs is taken for looping, in your case take 2 hours).
New2---@time, time when job will start, just a starting time.
New3----Iconv("00:00:02", "MTS")(calculate exact time taken by your sequence which in turn runs 4 jobs).
and in start loop stage, loop from
start--New2
step---New3
To--New1
hope it helps.
1.Imagine your 4 jobs take 2 secs to run ok.
2.start your job with some time and imagine you want be in loop for 2 hours.
you have to use UserVariables_Activity,startloop,Job_Activity and EndLoop.
job design like below
UserVariables_Activity--->startloop------->Job_Activity------>EndLoop.
in UserVariables_Activity stage create 3 variables like below
New1---@time+Iconv("00:00:10", "MTS")(ex 10 secs is taken for looping, in your case take 2 hours).
New2---@time, time when job will start, just a starting time.
New3----Iconv("00:00:02", "MTS")(calculate exact time taken by your sequence which in turn runs 4 jobs).
and in start loop stage, loop from
start--New2
step---New3
To--New1
hope it helps.
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
DS jobs usually take a variable length of time based on how much data they are processing. If he's checking for new files arriving, then it might take 2 seconds to find that there are no files, or half an hour if a big file drops in.sachin1 wrote:hello dear,
1.Imagine your 4 jobs take 2 secs to run ok.
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant