Have you looked at whether or not the old "Endevor for DB2" option might help?
------------------------------
Consultant
John D Consulting Inc.
------------------------------
Original Message:
Sent: 11-16-2019 06:07 PM
From: Mathew Goldstein
Subject: Blocking load module creation following DB2 bind failure
For some of the subprogram object modules we can identify the DB2 data sharing group (from our processor group names) and we can identify the DBRM library (standardized library names with stage name qualifiers match the inventory area names). Is anyone retrieving the CONTOKEN by executing DB2 SELECT commands in ENDEVOR and comparing that against the DBRM timestamp to verify that the required pre-production and/or production DB2 binds for the main program and its subprograms were successfully executed prior to moving main routine DB2 load modules to the next stage?
I think it should be possible to reduce the risk of a runtime failure by verifying that all of the target stage DB2 binds for (at least) the first level called subprograms were successfully completed before moving DB2 load modules to the target stage. For this to work properly the subprograms are object modules, the main routine load modules are created using a separate type from the types utilized to create the object modules, and the DB2 binds are executed on package move actions to ensure proper type sequencing. A REXX exec or CLIST could read information about the first level called subprograms from the prior stage input component list. Then for each subprogram, read the current stage DBRM for the hex timestamp, create a DB2 SELECT command (sorted on BINDTIME?) to obtain the hex CONTOKEN, compare them , and fail the move action for the load module when they do no match. The ACM also identifies subprograms called by other subprograms. The generate time information for the subprograms is not available but that information is arguably unnecessary. So reading the ACM using information may be better than relying on the sometimes incomplete input component information.