Originally posted by Mark Perschbacher
I am experimenting with ways to remove the ~'s from the OBX segment of an MDM message that I am xlating from an ORU. The ~'s are the new line deliminters, so I am testing a proc by removing the *'s first. I have this proc entered in the CALL function of the xlate, but it doesn't seem to be working. If I enter the same code directly into the COPY function, it works fine. What part am I missing?
proc tilde {} {
upvar xlateId xlateId
xlateInList xlateInList
xlateInTypes xlateInTypes
xlateInVals xlateInVals
xlateOutList xlateOutList
xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals
set code [lindex $xlateInVals 0]
regsub -all {*} $code { } code1
set xlateOutVals
#echo "proc run"}CALL Options TCL tilde Source1(0).1(0).1(0).OBX.00573Destination0(0).OBX(0).00573(0)