Using a Web server application programming interface (API) rather than CGI can improve the performance of Net.Data considerably. With these APIs, Net.Data reuses connections to DB2. Net.Data creates DB2 threads and keeps them active for the life of the process.
Any macro that executes successfully using CGI will execute successfully using ICAPI or GWAPI. No modifications need to be made to these macros.
Unless you modified the directory structure or name when you created the HFS directory for Net.Data, the SMP/E install process installed the Net.Data executable files and DLLs in the directory /usr/lpp/netdata/icapi-lib. Because /usr/lpp/netdata is not your Web server's root directory, the Web server cannot handle client requests for Net.Data unless you make some additional modifications to the Web server's configuration.
To modify the Web server:
ServerInit /usr/lpp/netdata/icapi-lib/db2www:dtw_init
Service /netdata-cgi/db2www* /usr/lpp/netdata/icapi-lib/db2www:dtw_icapi*
LIBPATH=/usr/lpp/internet/bin:/usr/lpp/netdata/icapi-lib
ServerInit /usr/lpp/internet/server_root/cgi-bin/db2www:dtw_init
Service /cgi-bin/db2www* /usr/lpp/internet/server_root/cgi-bin/db2www:dtw_icapi*
LIBPATH=/usr/lpp/internet/bin:/usr/lpp/internet/server_root/cgi-bin
Restriction: Do not specify more than one of the following directories in the LIBPATH statement of the Web server's environment variables file:
For more detail on installing the Web server and on Web server configuration file directives, refer to the following publications: