Consider the following example, in which independent
SET statements use field reference paths to manipulate the message tree. The
SET statement takes a source and target parameter, where either or both parameters
are field references:
Now consider a scenario that accesses repeating
fields in an input message tree; for example:
DECLARE myChar CHAR;
DECLARE thisRecord INT 0;
WHILE thisRecord < 10000 DO
SET thisRecord = thisRecord + 1;
SET myChar = InputRoot.MRM.myParent.myRepeatingRecord[thisRecord];
END WHILE;
When index notation is used, as the count increases,
the processing needs to navigate over all the preceding fields to get the
one it wants; that is, it has to count over the previous records to get to
the one that is represented by the current indexed reference.