Top
NetCOBOL V11.0 ISAPI Subroutines User's Guide
FUJITSU Software

5.3 Referencing an Error Detected by an ISAPI Subroutine

To reference an error detected by an ISAPI subroutine, set the debug mode just before invoking "COBW3_INIT" in a program.

   :
SET COBW3-DMODE-DBG  TO TRUE
CALL "COBW3_INIT"  USING COBW3.
   :

This setting displays an error message in the WWW Browser if an error is detected by an ISAPI Subroutine.

Anything other than COBW3-CONTENT-TYPE-NON defined for the header output is assumed as COBW3-CONTENT-TYPE-HTM and COBW3_INIT declare the Content-type.

To set the debug mode, you need to modify a program and re-create the Web application. Depending on the debug mode setting, you can reference an error message displayed in the WWW Browser in the log information also. Thus, it is recommended to use log information to reference error messages without changing an application.

Note

If the Web application has Unicode as the operation code, the debug mode setting is disabled. Check the operation by, for example, referencing the log information.