Is there a way to access message from within translation?
I am filtering messages depending on a value in TXA-2.
I’d like to output message text in the log if it gets SUPPRESSed.
I don’t want to filter in pre-xlate Tcl UPoC (I know how to get message from there).
So, now filtering part of translation looks like that:
{ { OP COMMENT }
{ COMMENT {Kill if TXA-2 is not OP01, OP11, DS02 or DS22} }
}
{ { OP IF }
{ ERR 0 }
{ COND { (0(0).TXA.#2 ne =OP01) && (0(0).TXA.#2 ne =OP11) && (0(0).TXA.#2 ne =DS02) && (0(0).TXA.#2 ne =DS22)} }
{ THENBODY {
{ { OP COPY }
{ ERR 0 }
{ PRE {
echo “message suppressed; type [lindex $xlateOutVals 0] is neither of the following: OP01/OP11/DS02/DS22”
}}
{ IN 0(0).TXA.#2 }
{ OUT @null }
}
{ { OP SUPPRESS } }
}}
{ ELSEBODY {
}}
}
Thanks
Sergey