Since I can’t reply to an archived 3 year old thread, I’m making a new one. I need to create new OBX segments from a single OBX segment where OBX-5 contains \.br\ in a translation.
What I need to do is exactly the same as in this old thread.
https://usspvlclovertch2.infor.com/forums/topic/creating-new-segments-from-within-xlate/
In the thread, Jim Koslosky states:
“If inside the Xlate then you will need to split the NTE-3 on .br creating a list (if 6.1.0 or later you can use the STRING Action with the appropriate function).
Then you will need some tcl to pop each element of the list. This would be inside a LIST ITERATE which needs to be controlled. Most of the above stuff for building the NTE segments will be the same except the ITERATE Counter will be %l1 but the OB counter will still be %s99 but the source will be the list created by the split.”
Can someone (or Jim if you see this) provide a screenshot or example of what the output list of splitting on .br would look like and how to iterate a list and “pop each element of the list?