I need to insert a value in PV1- 52.X.0 where X is the repeating value. The message may contain cc/review doc information in PV1-52.X from the source or other Xlate code prior to mine. So, I need to be careful in not over writing what
As you can’t iterate through the outbound message (only through inbound message), you will need to solve this in a different way.
You will need to keep track of how many PV1-52 repeats you have already done.
So first initialize a field-variable (Copy =0 -> $%f9) and after each write to PV1-52 you will need to increase this value (Math add $%f9 =1 -> $%f9). Then after you’re sure that all the writes to PV1-52 have been done, you can write to the next PV1-52 repetition with this field-variable (Copy =text -> PV1-52.%f9)
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands
Author
Replies
Viewing 1 reply thread
The forum ‘Cloverleaf’ is closed to new topics and replies.