Skip to main content

Problem:

A Cobol program is running under ES/JCL with Connect to UDB through XA.

It calls a C (.dll) which includes embedded SQL.

How must the C module be compiled and linked ?

Resolution:

Linking an operational "C" module as a .dll can be achieved through the Net Express Build process.

Just add the object code produced by the "C" compiler to the project, and create a package type .dll from the .obj. In order to enable embedded SQL you need to include db2api.lib into the .dll.

Please ensure that the CBLLINK utility also creates a .lib library and is exporting the entry points .exp.

Old KB# 4268