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

2.4 CBL_FLUSH_FILE

This routine outputs buffer data to a file.

Specification

Parameter data definition
01  file-handle  PIC X(4).
01  status-code  PIC S9(4) COMP-5.
Calling format
CALL "CBL_FLUSH_FILE"
    USING file-handle
    RETURNING status-code.

Interface

file-handle
Specifies the file handle returned by CBL_OPEN_FILE or CBL-CREATE_FILE.

Return code

The return code is set in the status-code specified in the RETURNING clause.

status-code
0: Successful
-1: Buffer flushing failure or parameter error
Other than above: Value indicating ANSI74 file status