I have a copy statement using EVN.#2 with the pre-tcl fragment to get the length of that field and save it to a temp field @evn_length:
set xlateOutVals
]]
This seems to work okay; an echo of xlateOutVals shows the correct length. So next I add an IF statement:
IF @evn_length < =12 copy MSH.#7 to outbound EVN.#2. I can’t get this to work. Everything I’ve tried indicates that the temp variable just isn’t being recognized by the IF statement; the copy never seems to take place even when @evn_length is 8. The temp variable shows up when I display the list. Is there something else I need to do? I even tried stopping/starting my ADT process and just sending a test record thinking that maybe it was a problem with the testing tool. It still didn’t work. Any ideas on what I’m missing or doing wrong? Beth