The following conditions must be satisfied when using the CGI subroutines from COBOL:
A COBOL program that is to be used by a Web application must not use the screen I/O functions listed below. For details, see "NetCOBOL User's Guide" in Chapter 21.
Presentation file module (screen handling function)
Screen handling module
ACCEPT/DISPLAY function (However, environment variables and date/time operation function can be used.)
REPLACING statement must not be specified in a COPY statement that is used to read the COBW3.cbl library that is supplied by the CGI subroutines. In addition, a REPLACE statement that replaces the actual COPY statement must not be specified.
If data was initialized in the DATA DIVISION by using the VALUE clause, the initial values that are related to two or more requests to start a CGI process with a COBOL application may not be assured in some operating environments. When initial values must be assured each time a request is issued from a WWW browser, the data must always be initialized by the PROCEDURE DIVISION to be executed to insure these initial values.