Job Sequence question - loops and user variables
Posted: Tue Jan 13, 2015 3:48 am
I have a Job Sequence which loops multiple times, calling a job which returns a single value each iteration (via UserStatus) to the calling sequence.
After n iterations of this loop I would like to have a comma-separated list of those returned values in a variable that I can then pass to yet another job.
Unfortunately the User Variable Activity stage variables do not allow the construct "A = A : <new value>" and I can't see a simple way to do this; but perhaps I'm overthinking the problem and am missing some simple solution that someone else here might find.
I've temporarily worked around the issue by declaring a user-written BASIC function which uses a COMMON block to statically store a variable and append strings to it on each call, but this seems to be a bit too complicated.
After n iterations of this loop I would like to have a comma-separated list of those returned values in a variable that I can then pass to yet another job.
Unfortunately the User Variable Activity stage variables do not allow the construct "A = A : <new value>" and I can't see a simple way to do this; but perhaps I'm overthinking the problem and am missing some simple solution that someone else here might find.
I've temporarily worked around the issue by declaring a user-written BASIC function which uses a COMMON block to statically store a variable and append strings to it on each call, but this seems to be a bit too complicated.