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

3.4.1 COBW3_GET_VALUE, COBW3_GET_VALUE_XX, COBW3_GET_VALUE_NX, COBW3_GET_VALUE_XN, and COBW3_GET_VALUE_NN

These subroutines retrieve an arbitrary name (NAME) from the Web parameters that were acquired using COBW3_INIT, and acquire the corresponding value (VALUE). The functions of these subroutines are as follows:

ASCII environment

COBW3_GET_VALUE

Retrieves an alphanumeric character string name (NAME), and returns the alphanumeric character string that is the corresponding value (VALUE).

Unicode environment

COBW3_GET_VALUE_XX

Retrieves an alphanumeric character string name (NAME), and returns the alphanumeric character string that is the corresponding value (VALUE).

COBW3_GET_VALUE_NX

Retrieves a national character string name (NAME), and returns the alphanumeric character string that is the corresponding value (VALUE).

COBW3_GET_VALUE_XN

Retrieves an alphanumeric character string name (NAME), and returns the national character string that is the corresponding value (VALUE).

COBW3_GET_VALUE_NN

Retrieves a national character string name (NAME), and returns the national character string that is the corresponding value (VALUE).

To store the acquired value (VALUE), the en-size blank is added as a padding character.

Format

CALL "COBW3_GET_VALUE" USING COBW3.
CALL "COBW3_GET_VALUE_XX" USING COBW3.
CALL "COBW3_GET_VALUE_NX" USING COBW3.
CALL "COBW3_GET_VALUE_XN" USING COBW3.
CALL "COBW3_GET_VALUE_NN" USING COBW3.

Data setting at calling

COBW3-SEARCH-DATA or COBW3-SEARCH-DATA-N

Specify a retrieval name (NAME) that was already specified in the "name" in the HTML document (Web page used to invoke the application).

When COBW3_GET_VALUE, COBW3_GET_VALUE_XX or COBW3_GET_VALUE_XN are used, specify the name in COBW3-SEARCH-DATA.

When COBW3_GET_VALUE_NX or COBW3_GET_VALUE_NN are used, specify the name in COBW3-SEARCH-DATA-N.

COBW3-SEARCH-LENGTH [Optional]

To retrieve a name (NAME) that has a valid blank at the end, specify the byte length of the name containing the blank (character string).

Value

Explanation

0

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

1 to 1024

Retrieves a name of the specified character string length.

COBW3-NUMBER [Optional]

When two or more identical names (NAME) are specified in the CGI parameter, specify the occurrence sequence of the retrieval targets.

Condition name

Value

Explanation

COBW3-NUMBER-INIT

1

Retrieves the first matching name.

-

2 to 9999

Retrieves the name with the specified occurrence sequence.

Processing result data

COBW3-SEARCH-FLAG

Condition name

Value

Explanation

COBW3-SEARCH-FLAG-NON

"0"

The retrieved name was not found.

COBW3-SEARCH-FLAG-EXIST

"1"

The retrieved name was found.

COBW3-GET-DATA or COBW3-GET-DATA-N

The value (VALUE) that corresponds to the retrieval name (NAME) is set.

When COBW3_GET_VALUE, COBW3_GET_VALUE_XX or COBW3_GET_VALUE_NX are used, the found value is set in COBW3-GET-DATA.

When COBW3_GET_VALUE_XN or COBW3_GET_VALUE_NN are used, the found value is set in COBW3-GET-DATA-N.

COBW3-GET-LENGTH

The character string length (byte length) of the value (VALUE) corresponding to the retrieval name (NAME) is set.