hello
I need to call FORCE APPLICATION from my C/C++ code.
The conventional way is to call sqlefrce() function which is declared in sqlenv.h file.
The problem is that the function's object code sits is db2api.lib which is missing from all the client installations. I tried IBM Data Server Driver for ODBC and CLI, IBM Data Server Driver Package, IBM Data Server Runtime Client on Windows. None of the contains this lib. It is rpesent only in the server installation.
If I try to call FORCE APPLICATION using conventinal CLI interface (calling SQLExecDirect()), I got an error like
[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "APPLICATION" was found following "FORCE ". Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601
please tell me if I can call force application using client software only, without copying db2api.lib from server distribution
thanks
Yury Markman