One solution is to add a post-process script that interrogates the return code, and if it is 16, set it back to 0. (Considered sloppy, and hides/masks the actual outcome for the task.)
Another solution is to go into the tasks General/Runtime settings and tell it to consider a 16 to be OK. But doing so will also mean a RC of 15, 14, etc. would also be considered to be OK, so those types of failures would go unnoticed. (When we do this, we add Workflow post-condition rules to trap the other bad outcomes.)
The best solution is to figure out how to tell that the file is empty prior to trying to consume it, and then skip that task when it is empty, thus avoiding the bad RC all together.
------------------------------
Pete
------------------------------
Original Message:
Sent: 02-14-2020 06:55 AM
From: Lennie Currington
Subject: Step level condition code checking
Does anyone use the step level condition code checking? I have this set on a few jobs that occasionally have an empty file causing a RC=16. The jobs still flag this as an abend instead of passing it as OK. I have checked with support as well, and they say that the setup is correct. It's just baffling as to why it doesn't work the way it should and i was wondering if it's my system or if others have the same issue or a solution for the issue