Working with an application that is retrieving a file. The job is set up on the mainframe but it using ConnectDirect to collect the files. The job is running and returning a RC 0 regardless because we are getting it on the submitted status instead of completion. We created 2 other jobs; one for completing with RC 0 if the file is there and one with RC 8 when the file is not there.
We set up a condition on the appl but conditional doesn't pull any bad return code it just get bypass if the file is not there. We are not getting the bad return code and we need the process to fail if there is no file. Is there an easier way to do this?
This is how the appl is set up right now
CCCHK RC(0:7) OK CONTINUE
RELEASE (#CDGOOD, #CDBAD(A))
CCCHK RC(1:4095) FAIL CONTINUE
JOB #CDBAD CONDITIONAL
CCCHK RC(8) FAIL CONTINUE