Thanks.
The TCLs causing a problem are all full of the comments at the end of commands. i.e.
switch -exact — $segtype {
MSH {
set newseg “”
#loop through and process fields
set fields [split $seg $sep] ;# convert segment into field list
I’ll change these as you suggested.
The version of TCL running on our 5.2 allows this.