This routine outputs buffer data to a file.
Specification
01 file-handle PIC X(4). 01 status-code PIC S9(4) COMP-5.
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