Design scenario for calling sequence multiple times
Moderators: chulett, rschirm, roy
Design scenario for calling sequence multiple times
I have a very basic design but am wondering if it's possible to use the start and end loop activity for this. As the title suggests i have a sequence that needs to be called several times by passing a different file name each time.
For now i simply have a master sequence that has multiple job activity stages. My question is can the same be accomplished using the loop activity stages and if so how will i pass different file names? Thanks!
For now i simply have a master sequence that has multiple job activity stages. My question is can the same be accomplished using the loop activity stages and if so how will i pass different file names? Thanks!
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Definitely. Use a "list of things" loop. Pass it a delimited list of file pathnames. Within the loop access the activity variable StartLoop.$Counter which will contain the pathname of the file for that iteration. (StartLoop needs to be replaced with the name you used for your Start Loop activity.)
Last edited by ray.wurlod on Tue Feb 26, 2013 7:33 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Thank you for unprotecting it and apologize for the delayed response. The "list of things" seems to work fine as the loop goes over as many items as I have.
But I seem to be unable to pass different parameters to this Job Activity. For example, every run will have a unique identifier that needs to be passed to the Job. How can I accomplish this?
Thanks in advance!
But I seem to be unable to pass different parameters to this Job Activity. For example, every run will have a unique identifier that needs to be passed to the Job. How can I accomplish this?
Thanks in advance!
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
So one more question at what frequency this unique identifier can be reset.
If it is for a run:
1) You can have a user variable activity side the loop and increment it. Guess there will be more better solution than this
If it has to be unique over a period of time, you have to use a external sequencer or maintain the value in a file. increment in each run , rewrite it.
If it is for a run:
1) You can have a user variable activity side the loop and increment it. Guess there will be more better solution than this
If it has to be unique over a period of time, you have to use a external sequencer or maintain the value in a file. increment in each run , rewrite it.
Thanks,
Prasanna
Prasanna
Thanks for the responses. I'm unsure whether I can write to a file and read from it as the params are passed via a UNIX script....
And to answer the frequency of reset Q, I'm not sure about that one either. All I know is that they have to be unique for every run and there may be thousands of run for the same job.
And to answer the frequency of reset Q, I'm not sure about that one either. All I know is that they have to be unique for every run and there may be thousands of run for the same job.