Auto entry example 1
-
Add an ITERATE action, and click
PV1 (in this example, PV1
is repeated) in the Input Message Format tree. The repeated field is
automatically populated as
%gx
(group),%sx
(segment), or%fx
(field). In this example, it is%s1
.x
indicates the ITERATE variable index and is an integer starting with 1. The ITERATE variable is not duplicated by default. If%s1
exists, then%s2
is taken; if%s2
exists, then%s3
is taken; and so on. - Double-click the PV1 node, or select Copy to Basis. Type, Basis, and Variable of the ITERATE are automatically filled.
-
Select the FT1 node. This is another repeated segment.
-
Then select Copy to
Basis.
Variable does not change if they have same node type, for example, segment. The repeated field is
%s1
. - Change Basis back to PV1.
A new Variable is populated if Variable is empty. This also happens when the node type of the format tree is not the same as the ITERATE action type. -
Then select Copy to
Basis.
-
Add a COPY action inside the ITERATE action and select a child
node of PV1. The segment index is automatically substituted with
%s1
in the address path. -
Add an ITERATE action inside the ITERATE action and select a
repeated child node of
PV1
. A sub-ITERATE action uses0(0).PV1(%s1).#20
as the Basis and Variable are automatically populated. -
Add a COPY action inside the sub-ITERATE action and select a child
node of
PV1(0).#20
. The segment index and field index in the pathname are automatically substituted with the super ITERATE variable (%s1
) and the sub-ITERATE variable (%f1
). -
Add another ITERATE action Basis on output node
FT1
. The Variable is%s2
. -
Add a COPY action inside the ITERATE action. The input side uses
%s2
for pathname. -
If you manually change the ITERATE variable index to another
integer, then the references for this ITERATE variable are automatically updated.
References can be the properties of the actions under ITERATE.
Any substrings that entirely match the old variable are substituted with a new variable.
Updated action properties are:
- ITERATE: Basis
- COPY/CONCAT/TABLE/MATH/STRING/CALL: Pre Proc, Post Proc, Source, Destination
- CALL: Proc
- IF: Condition, ELSE
- PATHCOPY: Source, Destination
- INCLUDE: Group Prefix in Host Xlate