I got a cyclic job, that merges several files and creates one on output. Works well, but ...

When one of files does not exist, job ends with strange "FLUSH" word instead of RC.
I'd like to stop this cyclic job in case flush occurs (By "STOP" i mean stop cycle, that job will not be in state "waiting schedule" after bad run).
Is it somehow possible through either JCL or SCH ?
Best regards!