Hello Danny,
If I read your second post right, you want to exec a SUPPRESS when PV1:10 is NOT one of {OBS,NRY,OOB,OBV} so you want to “AND” (&&) and not OR (||) your individual “ne” conditions in the original “IF” statement like this:
IF 0(0).PV1(0).#10(0) ne =OBS && 0(0).PV1(0).#10(0) ne =NRY && 0(0).PV1(0).#10(0) ne =OOB && 0(0).PV1(0).#10(0) ne =OBV
SUPPRESS
(no else)
re the echo statement, just make a COPY operation like Thomas suggested and put it above the suppress inside the if.
source: 0(0).PV1(0).#10(0)
dest: @scratchVar
in the “pre-proc” make sure TCL is chosen and put in this code snippet as a starting point. once you get comfortable with TCL and the xlt parameters you can get more complicated than this.
set temp [lindex $xlateInVals 0]
echo “suppressing message: PV1:10 is “$temp””
When you run the xlate tester then when the copy statement containg this pre-proc execs you’ll see the output and when you run for real it’ll show up in the process log file.