ADSOBCOM compile of dialog failed with DC497042 Dialog is checked out to ADSC and cannot be compiled. ADSC and ADSL verify that the dialog is not checked out. If the dialog is then checked out with ADSC and released it can then be successfully compiled with ADSOBCOM.
This problem was reported back in 15.0 and fixed with QO35202:
PROBLEM DESCRIPTION: ADSOBCOM fails with an erroneous DC497042 Dialog is checked out to ADSC and cannot be compiled in batch on a compile request for some dialogs that are not checked out.
This fix is not retroactive, it just prevents the problem from occurring for dialogs being compiled by ADSC in the future after QO35202 has been applied.
The problem comes down to this, ADSC was leaving a flag selected that indicated to ADSOBCOM that the dialog was checked out. This flag is in the PROG-051 record. Here is an example:
the x'10' here means it is checked out.
By going into ADSC and checking out these dialogs and then releasing them ADSC is changing the x'10' to x'00' which allows ADSOBCOM to compile these dialogs successfully. Following this procedure of checking out the dialogs and releasing them with ADSC will correct flag in the PROG-051 record and this will not re-occur for these dialogs.