Description:
When running a batch job that has a CDMSLIB defined which does not contain the program's load module, the following message is issued:
IDMS DC999999L MODULE xxxxxxx BLDL FAILED
where xxxxxx is the name of the program.
The job step abends with:
USER COMPLETION CODE=4036 REASON CODE=00000004.
Solution:
The program on the EXEC PGM= must be in the STEPLIB so z/OS can find it. When the mini CV is built, CA-IDMS needs to reload that initial program to resolve the CSA address in IDMSSTUB. Since there is a CDMSLIB, CA-IDMS will search the CDMSLIB concatenation for the program, it also will search the LPA, but NOT the STEPLIB.
Therefore we get the BLDL FAILED message.
If we do not have CDMSLIB DD statement in the JCL, CA-IDMS will search the STEPLIB and also LPA and LINKLIST.
We recommend not using CDMSLIB in BATCH jobs. So the best solution is to just remove it.