The XDDOPEN, XDDCHECK, and XDDCLOSE commands make it possible to programmatically check if there will be any conversion errors accessing a table from SQL (see API for SQL Conversion Error Checking for details). This allows them to be called directly from ACUCOBOL without the necessity to load the mtclient.dll.
To allow these commands to be called from ACUCOBOL, the following modifications are necessary:
extern void* ct_XDDOpen();
extern long ct_XDDCheck();
extern void ct_XDDClose();
{ "XDDOPEN", FUNC ct_XDDOpen, C_pointer},
{ "XDDCHECK", FUNC ct_XDDCheck, C_long},
{ "XDDCLOSE", FUNC ct_XDDClose, C_void},
{ NULL, NULL, 0 }
After performing the above steps, XDDOPEN, XDDCHECK, and XDDCLOSE will be directly callable from the COBOL application.
See Also