Ok, but in this case your logic is wrong, because you told us that ZABC has higher priority, however in the logic you are ignoring ZABC if there is record.
Note what you wrote about the logic: "If SYSUBRC = 0 then IGNORE ZABC."
Ok, but in this case your logic is wrong, because you told us that ZABC has higher priority, however in the logic you are ignoring ZABC if there is record.
Note what you wrote about the logic: "If SYSUBRC = 0 then IGNORE ZABC."