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 29+ years Cloverleaf, 59 years IT - old fart.