ITERATE type user
The ITERATE type user
uses u
as the variable name.
When the Type is user, the Basis can be a user-defined variable that stores a list.
A user list points to a defined list of fields. The list content can be used in an address as a repeat number. For example:
ITER %u1 on 0 3 5
0(0).PV1(0).00203(%u1)
Example: "user" iterate type
To iterate over a user-defined list that is referenced by a variable, you must use the “user” iterate type. Iterate types are list, segment, field, group, and user.
For the basis, specify the name of the variable, for example,
@mylist
.
The iterate then loops over each element in the list that is referenced by
@mylist
.
Example usage:
COPY =a b c d --> @mylist
ITERATE user @mylist %u1
In this example, %u1
contains “a
” for the first
iteration.
This feature was introduced in 6.2.0.