multiple loops in a squence job..
Posted: Mon May 03, 2010 9:38 pm
Hi,
My requirement is to pass two sets of dates(as parameters) into the given sql queries.
I have created two jobs, one for each set of dates.
Iam trying call these two jobs thru a sqeunce job and pass the dates in the loops as list.
Here is my sequence flow.
execute stage1-->UserVariable1-->StartLoop1--->Jobactivity1-->executestage2-->UserVariable2-->Jobactivity2-->Jobactivity3-->Stoploop(1&2).
I want to pass for example two sets of parameters(2009-01-31,2009-02-28)and(Prev_yr_date1,Prev_yr_date2). I want the dates to be picked as "2009-01-31" in first loop "Prev_yr_date"1 in the second loop and run till jobactivity3 and then start again from startloop1 with 2009-02-28 in the first loop(ie jobactivity1) and pre_yr_date2 in the second loop(ie jobactivity2) and run till jobactivity3 and so on...
The issue is for the first comple run its picking the dates correctly (ie "2009-01-31" ,"Prev_yr_date1") but for the second run it picking the dates as "2009-02-28",Prev_yr_date1) ie startloop1 is picking the params fine but startloop2 is picking only the first parm..I could figure out where the prooblem is..
I tried to explain it as best as i can(i know that this is still not clear..but thought will give some idea atleast)
Any thoughts on this would be of grt help.
Thanks
My requirement is to pass two sets of dates(as parameters) into the given sql queries.
I have created two jobs, one for each set of dates.
Iam trying call these two jobs thru a sqeunce job and pass the dates in the loops as list.
Here is my sequence flow.
execute stage1-->UserVariable1-->StartLoop1--->Jobactivity1-->executestage2-->UserVariable2-->Jobactivity2-->Jobactivity3-->Stoploop(1&2).
I want to pass for example two sets of parameters(2009-01-31,2009-02-28)and(Prev_yr_date1,Prev_yr_date2). I want the dates to be picked as "2009-01-31" in first loop "Prev_yr_date"1 in the second loop and run till jobactivity3 and then start again from startloop1 with 2009-02-28 in the first loop(ie jobactivity1) and pre_yr_date2 in the second loop(ie jobactivity2) and run till jobactivity3 and so on...
The issue is for the first comple run its picking the dates correctly (ie "2009-01-31" ,"Prev_yr_date1") but for the second run it picking the dates as "2009-02-28",Prev_yr_date1) ie startloop1 is picking the params fine but startloop2 is picking only the first parm..I could figure out where the prooblem is..
I tried to explain it as best as i can(i know that this is still not clear..but thought will give some idea atleast)
Any thoughts on this would be of grt help.
Thanks