Page History
LANSA Composer > Define Integration Components > Activities by Group > FOR_EACH_VAR
FOR_EACH_VAR
This is an iterator activity. It will iterate for each processing sequence variable extant in the variable pool. The iteration does NOT include built-in variables or internal variables. On each iteration the output parameters provide the variable name, index and variable value. Because it is an iterator activity, you may nest processing sequence directives beneath the FOR_EACH_VAR activity that will be executed for each iteration.
...
However, changes to the VALUES of processing sequence variables WILL be reflected in the iteration if they occur BEFORE the affected variable is iterated.
INPUT Parameters:
There are no input parameters.
OUTPUT Parameters:
VARNAME:
This output variable provides the name of the current processing sequence variable.
VARINDEX:
This output variable provides the index of the current processing sequence variable. If the variable is not part of a list, the value will be 1 (one).
VARVALUE:
This output variable provides the value of the processing sequence variable for the current index.