Description
I have used the ODBC and ACX sample programs written in Cobol to write mainframe, OS/390, PL/1 programs.
The ODBC one worked several weeks ago in interactive IMS and the ACX worked then under both interactive and batch modes but now I am trying to build and run the ODBC one under Batch mode IMS.
I got it to link okay by including ATTCICSS from the FIXLIB but now it abends on an 0C7 when I tried to allocate the connection.
Solution
The problem was in the Connect metadata, between the time that they did the two sets of tests (interactive ODBC, interactive ACX, and batch ACX at first and batch ODBC later) they created a new AIS HLQ on the mainframe and neglected to move the meta data from the old HLQ to the new one. Once that was straightened that out the ODBC program ran fine in batch mode.
In summary:
1. ODBC is coded and linked the same for interactive and batch modes (linked with FIXLIB(ACCLIS)); whereas
2. ACX is coded and linked differently for interactive and batch modes (calling ACXAINIT vs ACXINIT2 and linked with FIXLIB(ACX3GL) vs FIXLIB(ACX3GLB), respectively).


LinkBack URL
About LinkBacks




