After submitting a UBE for processing why not check any .pdf for issues in the same scheduled job that submitted the UBE. In REV SCHEDULER we have the RJCHKPDF command that can do that. In our GLPSOST Example we will be checking the R09801 output .pdf file for the string 'One or more batches had errors'.
The Flowchart of this complete Scheduled Job looks like:
Script sequence 30 executes the RJCHKDPF and if it completes:
The Script definition uses the Run Time E1 One World variables to resolve to the correct .pdf:
The run time E1 One World execution variable for this UBE look like:
This executes as:
If the text string 'One or more batches had errors' IS NOT found the RJCHKFIL command will return NC (Normal Completion) – this will be a Good Batch.
If the text string ‘One or more batches had errors’ IS found the RJCHKFIL command will return AC (Abnormal Completion) – this will be a Bad Batch.
The complete Job Scripts look like:
Good Batches are processed by Script sequences 35 – 60.
Bad Batches are processed by Script sequences 95 - 120.
|