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

3.11.2 COBW3_VALUE

This subroutine retrieves an arbitrary name (NAME) according to the Web parameters that were acquired using the COBW3_INIT. When this subroutine is called from an application-invoking Web page having a check box, the subroutine checks, by using VALUE, the item that was confirmed by the WWW browser.

Format

CALL "COBW3_VALUE" USING COBW3.

Data setting at calling

COBW3-SEARCH-DATA

Specify a retrieval value (VALUE) that is to be retrieved.

COBW3-SEARCH-LENGTH [Optional]

When the retrieval value has a valid blank at the end, specify the byte length of the blank-containing retrieval value (character string).

Value

Explanation

0

Retrieves a value up to the last character other than the blank.

1 to 1024

Retrieves a value of the specified character string length.

COBW3-NUMBER [Optional]

When two or more of the same values (VALUE) are specified in the Web parameter, specify the occurrence sequence of the retrieval targets.

Condition name

Value

Explanation

COBW3-NUMBER-INIT

1

Retrieves the first matching VALUE.

-

2 to 9999

Retrieves the VALUE with the specified occurrence sequence.

Processing result data

COBW3-SEARCH-FLAG

Condition name

Value

Explanation

COBW3-SEARCH-FLAG-NON

"0"

The retrieved VALUE was not found.

COBW3-SEARCH-FLAG-EXIST

"1"

The retrieved VALUE was found.