If the OBX-5 is a repeating field as indicated, then there is no need to use Tcl.
Simply iterate over the repeating field and creat an NTE with each repetition.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.