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

3.1 CGI Subroutines

Table 3.1 CGI Subroutines (COBW3_xxxxx)

Function

Subroutine name

Purpose

Work environment initialization and Web parameter acquisition

COBW3_INIT

Initialization of CGI subroutine work environment, and acquisition of Web parameters

Web parameter operation

COBW3_GET_VALUE

COBW3_GET_VALUE_XX

COBW3_GET_VALUE_NX

COBW3_GET_VALUE_XN

COBW3_GET_VALUE_NN

Retrieval of NAME in Web parameters, and acquisition of VALUE

COBW3_CHECK_VALUE

COBW3_CHECK_VALUE_X

COBW3_CHECK_VALUE_N

Retrieval of VALUE in Web parameters

Processing result output

COBW3_PUT_HEAD

Output of header

COBW3_PUT_HTML

Output of web page for processing result output

COBW3_SET_CNV

COBW3_SET_CNV_XX

COBW3_SET_CNV_NX

COBW3_SET_CNV_XN

COBW3_SET_CNV_NN

Registration of conversion data in Web page for processing result output

COBW3_DEL_CNV

COBW3_DEL_CNV_X

COBW3_DEL_CNV_N

Deletion of conversion data from Web page for processing result output

COBW3_INIT_CNV

Initialization of conversion data in Web page for processing result output

COBW3_SET_REPEAT

COBW3_SET_REPEAT_XX

COBW3_SET_REPEAT_NX

COBW3_SET_REPEAT_XN

COBW3_SET_REPEAT_NN

Registration of repeated conversion data in Web page for processing result output

COBW3_DEL_REPEAT

COBW3_DEL_REPEAT_X

COBW3_DEL_REPEAT_N

Deletion of repeated conversion data from Web page for processing result output

COBW3_INIT_REPEAT

Initialization of repeated conversion data in Web page for processing result output

COBW3_PUT_TEXT

Output of data (with addition of line feed code)

System command execution

COBW3_SYSTEM

Execution of specified system command

CGI execution environment resource release

COBW3_FREE

Releasing of resources that were acquired by CGI subroutines

Request information acquisition

COBW3_RECEIVE_HEADER

Acquisition of HTTP header

COBW3_GET_REQUEST_INFO

Acquisition of request information

COBW3_GET_AUTHORIZE

Acquisition of authorization information

Cookie data operation

COBW3_SET_COOKIE

COBW3_SET_COOKIE_XX

COBW3_SET_COOKIE_NX

COBW3_SET_COOKIE_XN

COBW3_SET_COOKIE_NN

Registration of cookie data

COBW3_DEL_COOKIE

COBW3_DEL_COOKIE_X

COBW3_DEL_COOKIE_N

Deletion of registered cookie data

COBW3_INIT_COOKIE

Initialization of all registered cookie data

COBW3_GET_COOKIE

COBW3_GET_COOKIE_XX

COBW3_GET_COOKIE_NX

COBW3_GET_COOKIE_XN

COBW3_GET_COOKIE_NN

Acquisition of cookie data from Web parameter

It is necessary to use the following subroutines in the ASCII environment:

It is necessary to use subroutines such as COBW3_xxxxx_XX and COBW3_xxxxx_N in the Unicode environment. Moreover, the meaning is as follows:

Subroutine name

Meaning of "X" and "N"

COBW3_xxxxx_XX

The NAME and VALUE parameters are regarded as alphanumeric data items.

COBW3_xxxxx_NX

The NAME parameter is regarded as a national data item. The VALUE parameter is regarded as an alphanumeric data item.

COBW3_xxxxx_XN

The NAME parameter is regarded as an alphanumeric data item. The VALUE parameter is regarded as a national data item.

COBW3_xxxxx_NN

The NAME and VALUE parameters are regarded as national data items.

COBW3_xxxxx_X

An input parameter is regarded as an alphanumeric data item.

COBW3_xxxxx_N

An input parameter is regarded as a national data item.

Any code system can use subroutines not listed above.

The operation of the conventional subroutines listed below is assured only when the related Web applications operate in an environment using ASCII code. If a Web application that will operate with a code system other than ASCII is to be developed, its alternative subroutine listed in the following table must be used.

Conventional subroutine

Alternative subroutine

COBW3_NAME

COBW3_GET_VALUE_XX

COBW3_GET_VALUE_NX

COBW3_GET_VALUE_XN

COBW3_GET_VALUE_NN

COBW3_VALUE

COBW3_CHECK_VALUE_X

COBW3_CHECK_VALUE_N

COBW3_CNV_SET

COBW3_SET_CNV_XX

COBW3_SET_CNV_NX

COBW3_SET_CNV_XN

COBW3_SET_CNV_NN

COBW3_CNV_DEL

COBW3_DEL_CNV_X

COBW3_DEL_CNV_N

COBW3_CNV_INIT

COBW3_INIT_CNV