It appears you have a space before and after the value.
I don’t use this proc but you may need to tweak your PASSCOND.
Maybe {PASSCOND ~REGEX NWDiscontinued }
Or {PASSCOND ~REGEX” NWDiscontinued “}
Or something like that, you get the idea.
> NWDiscontinued <
is different than
>NWDiscontinued<
That is why I think it is a space character issue.
Also it looks like your example segment and the example parse are not the same. Based on the example parse, I would expect the segment to look like
ORC|NW|298768133^HNAM_ORDERID| NWDiscontinued ||Discontinued||^Q 04