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

3.5.9 COBW3_PUT_TEXT

This subroutine adds line feed codes to a specified character string, and outputs the created data to a WWW browser.

Format

CALL "COBW3_PUT_TEXT" USING COBW3.

Data setting at calling

COBW3-PUT-STRING

Specify a character string that is to be output.

COBW3-PUT-STRING-LENGTH [Optional]

When the character string has a valid blank at the end, specify the byte length of the character string containing the blank.

Value

Explanation

0

Outputs a character string up to the last character other than the blank. However, if the COBW3-PUT-STRING character string consists of only blank characters, the character string length is assumed to be 0 (only line feed is performed).

1 to 1024

Outputs a character string of the specified character string length.

Processing result data

None

Output of character string data (including line feed codes) to WWW browser

The following figure shows a description example for outputting the character string "<CENTER>Thank you very much for your cooperation. </CENTER>" to a WWW browser:

Example

Usage example