Originally posted by Beth Palmateer
We are 5.2.1 on AIX 5.1. I am using a translate for ADT records and want to do a simple field copy based on the length of a field.
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 [list [clength [lindex $xlateInVals 0]]]
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