Paul,
I think the problem may be in your IF statement. Personally, I have found that if I try to access something like “YES” or “NO” in an IF statement inside an xlate, that the engine doesn’t like it if I say something like “IF @OBX_FLAG eq =Y”.
Instead I use two “@” variables in my comparison. I have a variable I use in an iterate for an OBX flag. Here is how I do it.
First, I declare my variables outside the iteration:
COPY =NO @OBX_FLAG
COPY =YES @YES
COPY =NO @NO
Second, I set up my IF statement as:
IF @OBX_FLAG eq @NO
Third, in a copy statement, I check a certain feild for the FLAG condition in a Tcl fragment and if the condition is true, then I set my xlatOutVals to change my @OBX_FLAG to YES.
COPY 1(0).1(0).1(%g1).OBX.#3 @OBX_FLAG
It seems a bit cumbersome, but it is the only way I could get the IF statement to work and believe me, I tried every way under the sun. If anyone has any other suggestions, please let me know.
Thanks…
Thomas G. Rioux
The Methodist Hospital