I have a parameter set having 6 parameters and 20 value file set. I need to run the job in sequence 20 times with different value file name each time.
I have created a delimited list of value file names as below:
ValueFileName1,ValuefileName2,ValueFileName3.... and so on...
Now I wanted to pass ValueFileName1 at first iteration and ValueFileName2 at second iteration.
I am not getting option to pass the value File Name in the job Activity from StartLoop.$counter.
Is there any way to pass the valuefilename to job activity from loop counter?
Looping on Value file name in Parameter Set
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
No problem. Use an Execute Command activity to read the file (use cat command for example). Remove the line terminator, either using a tr -d command in the pipeline, or using a User Variables activity. You now have a comma-delimited list that the Start Loop activity will be happy with.
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.
Not with the job activity stage unfortunately. It limits you to choosing a value file name from a drop down list. It's not possible to specify a parameter.
As a workaround, you can use the execute command activity to run the dsjob command where you should be able to use $Counter in setting the values file to use.
Mike
As a workaround, you can use the execute command activity to run the dsjob command where you should be able to use $Counter in setting the values file to use.
Mike
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: