David,
The string map is apparently leaving a couple of fields blank. This way is a bit more cumbersome, but you can try this:
set lst “GT098193,,DM11191700,SURNAME,Forename,20011217,M,,,,,,PP”
set lst [split $lst ,]
set idxs [lsearch -all $lst “”]
foreach idx $idxs {
set lst [lreplace $lst $idx $idx “”]
}
set newlst [join $lst ,]
I’m sure someone has a smoother way of doing it but I hope this helps.
Tom Rioux