The intent is to copy PID:3 to PID:2 and to string map content out along the way –
I’m trying to do this via a variable so I won’t have to custom code it time.
PID:2 may or may not have data in it.
My source side says takes these two pieces –
@ORC13 (a variable set prior to the copy)
1(0).0(0).0(0).PID(0).#3(0).[0]
COPY (NOT CONCAT)
Run the source through a PRE PROC
echo begin pre proc
set ORC13 [ lindex $xlateInVals 0 ]
echo ORC13 = $ORC13
set PID3 [ lindex $xlateInVals 1 ]
echo PID3 = $PID3
set xlateOutVals [string map { $ORC13 “” } $PID3 ]
echo PID2 out = $xlateOutVals
echo end pre proc
To a destination of
1(0).0(0).0(0).PID(0).#2(0).[0]
Issues –
1: The Variable ($ORC:13) is not string mapped out as expected.
2: PID:3 just appears to get copied into PID:2
I gather I should be able to do this – using a variable in a string map. What am I doing wrong here?
Thanks.
Lawrence Nelson
System Architect - MaineHealth IT