Originally posted by Albert Sinha
# Message handle
keylget args MSGID mh
set msg [msgget $mh]
set segList [split $msg r]
set fldSep [string index $msg 3]
set subSep [string index $msg 4]
set pidLoc [lsearch -regexp $segList {^MSH}]
set MSH [split [lindex $segList $pidLoc] $fldSep]
How do I split PV1 and then copy the PV1:5 to MSH:4
Some suggestions and help will be really appreciated.