user816833 wrote:I think what JJ999 need is to catch the event when any batch has changes its status or finishes its execution. The problem is that maybe the cobol routines you are referencing they are not following the regular SPL FW standars 100% accurately and this routines does not trigger the ChangeHandler extensions so the custome change handler is never called by cobol batch programs.
For the COBOL batches in CC&B, they all use a set of common routines for batch control - if you look at a COBOL batch, you will see "COPY CICZBTCR", and CICZBTCR contains the routines for getting batch parameters, starting, stopping, restarting batches etc.
To end a batch run, it is actually CIPZFBRN that is called, and this does contain SQL to end the batch run and log the end of thread message to the Message Log. This is the information displayed on the Batch Run Tree screen, and it is available on the table CI_BATCH_RUN.